Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_VCurve3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_VCurve3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007587/0.0007585, allocations: 98.11 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.327/1.327, allocations: 223.3 MB / 239.4 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001042/0.001042, allocations: 172.5 kB / 290.6 MB, free: 2.098 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03361/0.03361, allocations: 8.796 MB / 350.5 MB, free: 4.605 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003668/0.0003669, allocations: 11.03 kB / 413.9 MB, free: 42.76 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0818/0.08219, allocations: 52.56 MB / 466.5 MB, free: 13.04 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve3): time 0.02385/0.1061, allocations: 23.95 MB / 490.4 MB, free: 4.969 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01435/0.1204, allocations: 7.79 MB / 498.2 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004716/0.1252, allocations: 159.5 kB / 498.4 MB, free: 13 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005375/0.1306, allocations: 1.812 MB / 0.4885 GB, free: 11.18 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0094/0.14, allocations: 2.778 MB / 0.4912 GB, free: 8.395 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005151/0.1452, allocations: 1.681 MB / 0.4928 GB, free: 6.719 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01273/0.1579, allocations: 9.366 MB / 0.502 GB, free: 13.32 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02902/0.187, allocations: 17.64 MB / 0.5192 GB, free: 11.55 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005388/0.1924, allocations: 3.398 MB / 0.5225 GB, free: 8.145 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00619/0.1986, allocations: 4.1 MB / 0.5265 GB, free: 4.027 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001968/0.2006, allocations: 0.5234 MB / 0.527 GB, free: 3.504 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003822/0.2045, allocations: 0.8824 MB / 0.5279 GB, free: 2.621 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002947/0.2074, allocations: 1.693 MB / 0.5295 GB, free: 0.9219 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2227/0.4302, allocations: 4.027 MB / 0.5335 GB, free: 21.4 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01964/0.4499, allocations: 17.06 MB / 0.5501 GB, free: 17.23 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.4499, allocations: 0 / 0.5501 GB, free: 17.23 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.865e-06/0.4499, allocations: 3.688 kB / 0.5501 GB, free: 17.23 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0005751/0.4505, allocations: 0 / 0.5501 GB, free: 17.23 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2183 * Number of variables: 2183 Notification: Performance of Generate backend data structure: time 0.03039/0.4809, allocations: 9.05 MB / 0.559 GB, free: 12.64 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.848e-05/0.481, allocations: 9.594 kB / 0.559 GB, free: 12.64 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005228/0.4862, allocations: 1.272 MB / 0.5602 GB, free: 12.32 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03257/0.5188, allocations: 5.67 MB / 0.5658 GB, free: 10.19 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01227/0.5311, allocations: 5.675 MB / 0.5713 GB, free: 8.551 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005317/0.5317, allocations: 0.5798 MB / 0.5719 GB, free: 8.531 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003825/0.5355, allocations: 0.7729 MB / 0.5726 GB, free: 8.523 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03153/0.5671, allocations: 12.78 MB / 0.5851 GB, free: 4.723 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003077/0.5674, allocations: 15.41 kB / 0.5851 GB, free: 4.719 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002846/0.5703, allocations: 324.4 kB / 0.5854 GB, free: 4.477 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004099/0.5707, allocations: 0.4978 MB / 0.5859 GB, free: 4.094 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0279/0.5986, allocations: 12.25 MB / 0.5979 GB, free: 7.828 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08465/0.6833, allocations: 43.86 MB / 0.6407 GB, free: 11.35 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02564/0.709, allocations: 25.16 MB / 0.6653 GB, free: 15.3 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004951/0.714, allocations: 2.979 MB / 0.6682 GB, free: 12.32 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003537/0.7144, allocations: 242.4 kB / 0.6684 GB, free: 12.06 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003799/0.7182, allocations: 2.586 MB / 0.671 GB, free: 9.41 MB / 462.1 MB Notification: Performance of pre-optimization done (n=391): time 7.744e-06/0.7182, allocations: 0 / 0.671 GB, free: 9.41 MB / 462.1 MB Notification: Performance of matching and sorting (n=397): time 0.03925/0.7574, allocations: 18.17 MB / 0.6887 GB, free: 7.133 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002385/0.7577, allocations: 351.5 kB / 0.689 GB, free: 6.715 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00655/0.7643, allocations: 3.526 MB / 0.6925 GB, free: 3.184 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007165/0.765, allocations: 85.7 kB / 0.6926 GB, free: 3.094 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002279/0.7673, allocations: 3.384 MB / 0.6959 GB, free: 15.69 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00146/0.7688, allocations: 1.349 MB / 0.6972 GB, free: 14.35 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006153/0.7694, allocations: 442.2 kB / 0.6976 GB, free: 13.91 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001025/0.7695, allocations: 309.1 kB / 0.6979 GB, free: 13.61 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004076/0.7736, allocations: 2.556 MB / 0.7004 GB, free: 11.05 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005731/0.7793, allocations: 4.52 MB / 0.7048 GB, free: 5.676 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1904/0.9697, allocations: 7.453 MB / 0.7121 GB, free: 169.6 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.544e-05/0.9698, allocations: 19.19 kB / 0.7121 GB, free: 169.6 MB / 494.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01543/0.9853, allocations: 8.282 MB / 0.7202 GB, free: 168.4 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.688e-05/0.9854, allocations: 57.77 kB / 0.7203 GB, free: 168.3 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001113/0.9855, allocations: 63.86 kB / 0.7203 GB, free: 168.3 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00265/0.9882, allocations: 0.9992 MB / 0.7213 GB, free: 168.1 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004908/0.9931, allocations: 1.257 MB / 0.7225 GB, free: 168 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01063/1.004, allocations: 8.245 MB / 0.7306 GB, free: 163.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004452/1.008, allocations: 364.4 kB / 0.7309 GB, free: 163.5 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005771/1.009, allocations: 263.2 kB / 0.7312 GB, free: 163.4 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 275 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (664): * Single equations (assignments): 662 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(10,48,52.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004297/1.013, allocations: 2.9 MB / 0.734 GB, free: 161.9 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006956/1.014, allocations: 386 kB / 0.7344 GB, free: 161.9 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01023/1.024, allocations: 6.193 MB / 0.7404 GB, free: 159.4 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.596e-05/1.024, allocations: 40.97 kB / 0.7405 GB, free: 159.4 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.426e-05/1.024, allocations: 14.72 kB / 0.7405 GB, free: 159.4 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.765e-05/1.024, allocations: 25.95 kB / 0.7405 GB, free: 159.4 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02188/1.046, allocations: 14.94 MB / 0.7551 GB, free: 150 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.722e-05/1.046, allocations: 6.812 kB / 0.7551 GB, free: 150 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002829/1.049, allocations: 0.6793 MB / 0.7558 GB, free: 149.5 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002329/1.051, allocations: 0.879 MB / 0.7566 GB, free: 148.8 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004403/1.052, allocations: 87.5 kB / 0.7567 GB, free: 148.7 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008602/1.06, allocations: 7.2 MB / 0.7637 GB, free: 141.8 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/1.06, allocations: 4 kB / 0.7637 GB, free: 141.8 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01098/1.071, allocations: 8.79 MB / 0.7723 GB, free: 132.9 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001947/1.073, allocations: 0.9373 MB / 0.7732 GB, free: 131.9 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005711/1.074, allocations: 72 kB / 0.7733 GB, free: 131.8 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001948/1.076, allocations: 207.7 kB / 0.7735 GB, free: 131.6 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004874/1.076, allocations: 271.1 kB / 0.7738 GB, free: 131.4 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000206/1.077, allocations: 120.5 kB / 0.7739 GB, free: 131.2 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002911/1.08, allocations: 2.359 MB / 0.7762 GB, free: 128.9 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.5e-07/1.08, allocations: 4 kB / 0.7762 GB, free: 128.9 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004435/1.084, allocations: 1.452 MB / 0.7776 GB, free: 127.4 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 3 (smee.inertiaRotor.w,smee.rotorCage.port_p.reference.gamma,constantTorque.phi) * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 1 ($whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (371): * Single equations (assignments): 369 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(10,46,50.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01103/1.095, allocations: 9.511 MB / 0.7869 GB, free: 117.8 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.009276/1.104, allocations: 6.477 MB / 0.7932 GB, free: 111.3 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.874e-06/1.104, allocations: 0 / 0.7932 GB, free: 111.3 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004493/1.109, allocations: 3.079 MB / 0.7962 GB, free: 108.2 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006399/1.115, allocations: 0.7817 MB / 0.797 GB, free: 107.4 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09919/1.215, allocations: 59.56 MB / 0.8552 GB, free: 43.24 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005092/1.22, allocations: 5.009 MB / 0.8601 GB, free: 38.19 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004596/1.224, allocations: 1.594 MB / 0.8616 GB, free: 36.59 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00364/1.228, allocations: 2.749 MB / 0.8643 GB, free: 33.84 MB / 494.1 MB Notification: Performance of SimCode: time 9.22e-07/1.228, allocations: 0 / 0.8643 GB, free: 33.84 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3105/1.539, allocations: 109.5 MB / 0.9712 GB, free: 105.9 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001371/1.539, allocations: 219.8 kB / 0.9714 GB, free: 105.6 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.913/5.452, allocations: 0 / 0.9714 GB, free: 105.6 MB / 494.1 MB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve3_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve3.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.pipe 2>&1)