Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.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_VCurve2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_VCurve2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve2",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.0008841/0.0008883, allocations: 98.03 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.313/1.313, allocations: 223.3 MB / 239.4 MB, free: 5.398 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.0009777/0.0009777, allocations: 180.5 kB / 290.6 MB, free: 2.066 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03303/0.03303, allocations: 8.814 MB / 350.5 MB, free: 4.574 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003577/0.0003576, allocations: 12.27 kB / 413.9 MB, free: 42.73 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08804/0.08842, allocations: 52.56 MB / 466.5 MB, free: 13.04 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve2): time 0.02584/0.1143, allocations: 23.95 MB / 490.4 MB, free: 4.973 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01642/0.1308, allocations: 7.794 MB / 498.2 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005073/0.1359, allocations: 167.5 kB / 498.4 MB, free: 12.99 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005782/0.1417, allocations: 1.805 MB / 0.4885 GB, free: 11.18 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009841/0.1516, allocations: 2.777 MB / 0.4912 GB, free: 8.395 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005045/0.1566, allocations: 1.681 MB / 0.4928 GB, free: 6.719 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01218/0.1688, allocations: 9.376 MB / 0.502 GB, free: 13.31 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02833/0.1972, allocations: 17.63 MB / 0.5192 GB, free: 11.55 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005174/0.2024, allocations: 3.398 MB / 0.5225 GB, free: 8.145 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00606/0.2084, allocations: 4.108 MB / 0.5265 GB, free: 4.02 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001588/0.2101, allocations: 0.5195 MB / 0.527 GB, free: 3.5 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003088/0.2132, allocations: 0.8824 MB / 0.5279 GB, free: 2.617 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00214/0.2153, allocations: 1.697 MB / 0.5295 GB, free: 0.9141 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.189/0.4043, allocations: 4.024 MB / 0.5335 GB, free: 21.35 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01773/0.4221, allocations: 17.06 MB / 0.5501 GB, free: 17.18 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.581e-06/0.4221, allocations: 6.281 kB / 0.5501 GB, free: 17.18 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.535e-06/0.4221, allocations: 1.312 kB / 0.5501 GB, free: 17.18 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0005058/0.4226, allocations: 0 / 0.5501 GB, free: 17.18 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.02903/0.4517, allocations: 9.052 MB / 0.559 GB, free: 12.59 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.374e-05/0.4517, allocations: 12.62 kB / 0.559 GB, free: 12.59 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004309/0.456, allocations: 1.27 MB / 0.5602 GB, free: 12.27 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03172/0.4878, allocations: 5.66 MB / 0.5658 GB, free: 10.14 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01614/0.504, allocations: 5.678 MB / 0.5713 GB, free: 8.5 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007059/0.5047, allocations: 0.5856 MB / 0.5719 GB, free: 8.48 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005473/0.5102, allocations: 0.774 MB / 0.5726 GB, free: 8.469 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03224/0.5425, allocations: 12.78 MB / 0.5851 GB, free: 4.629 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002023/0.5427, allocations: 7.75 kB / 0.5851 GB, free: 4.625 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001114/0.5438, allocations: 329 kB / 0.5854 GB, free: 4.379 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003726/0.5442, allocations: 0.4953 MB / 0.5859 GB, free: 4.039 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02426/0.5685, allocations: 12.25 MB / 0.5979 GB, free: 7.777 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08153/0.65, allocations: 43.85 MB / 0.6407 GB, free: 11.3 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02599/0.6761, allocations: 25.17 MB / 0.6653 GB, free: 15.25 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005307/0.6814, allocations: 2.976 MB / 0.6682 GB, free: 12.27 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004937/0.6819, allocations: 245.8 kB / 0.6684 GB, free: 12 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004685/0.6866, allocations: 2.582 MB / 0.6709 GB, free: 9.355 MB / 462.1 MB Notification: Performance of pre-optimization done (n=391): time 1.011e-05/0.6867, allocations: 3.938 kB / 0.671 GB, free: 9.352 MB / 462.1 MB Notification: Performance of matching and sorting (n=397): time 0.04315/0.7298, allocations: 18.17 MB / 0.6887 GB, free: 7.078 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001874/0.7301, allocations: 351.5 kB / 0.689 GB, free: 6.66 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006674/0.7368, allocations: 3.526 MB / 0.6925 GB, free: 3.129 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005245/0.7373, allocations: 93.7 kB / 0.6926 GB, free: 3.031 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002685/0.74, allocations: 3.388 MB / 0.6959 GB, free: 15.62 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001574/0.7416, allocations: 1.338 MB / 0.6972 GB, free: 14.29 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009339/0.7425, allocations: 446.1 kB / 0.6976 GB, free: 13.85 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000111/0.7426, allocations: 305.1 kB / 0.6979 GB, free: 13.55 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005016/0.7477, allocations: 2.564 MB / 0.7004 GB, free: 10.98 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00638/0.7541, allocations: 4.513 MB / 0.7048 GB, free: 5.617 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2041/0.9582, allocations: 7.453 MB / 0.7121 GB, free: 169.8 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.138e-05/0.9583, allocations: 17.62 kB / 0.7121 GB, free: 169.8 MB / 494.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01541/0.9737, allocations: 8.288 MB / 0.7202 GB, free: 168.5 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.982e-05/0.9738, allocations: 62.39 kB / 0.7203 GB, free: 168.5 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.789e-05/0.9739, allocations: 59.25 kB / 0.7203 GB, free: 168.5 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002439/0.9764, allocations: 0.9974 MB / 0.7213 GB, free: 168.3 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004322/0.9807, allocations: 1.263 MB / 0.7225 GB, free: 168.1 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01011/0.9908, allocations: 8.238 MB / 0.7306 GB, free: 163.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004868/0.9957, allocations: 362 kB / 0.7309 GB, free: 163.6 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008851/0.9966, allocations: 266.1 kB / 0.7312 GB, free: 163.5 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.005123/1.002, allocations: 2.901 MB / 0.734 GB, free: 162 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007622/1.003, allocations: 387.6 kB / 0.7344 GB, free: 162 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009178/1.012, allocations: 6.193 MB / 0.7404 GB, free: 159.5 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.41e-05/1.012, allocations: 53.7 kB / 0.7405 GB, free: 159.5 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.433e-05/1.012, allocations: 8.312 kB / 0.7405 GB, free: 159.5 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.103e-05/1.012, allocations: 22.58 kB / 0.7405 GB, free: 159.5 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02111/1.033, allocations: 14.94 MB / 0.7551 GB, free: 150 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.406e-05/1.033, allocations: 4 kB / 0.7551 GB, free: 150 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002466/1.035, allocations: 0.6862 MB / 0.7558 GB, free: 149.5 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002246/1.038, allocations: 0.8746 MB / 0.7566 GB, free: 148.8 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002382/1.038, allocations: 83.8 kB / 0.7567 GB, free: 148.7 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008599/1.047, allocations: 7.198 MB / 0.7637 GB, free: 141.7 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.019e-06/1.047, allocations: 12.03 kB / 0.7637 GB, free: 141.7 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01085/1.057, allocations: 8.789 MB / 0.7723 GB, free: 132.8 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001791/1.059, allocations: 0.9373 MB / 0.7732 GB, free: 131.9 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004628/1.06, allocations: 72 kB / 0.7733 GB, free: 131.8 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001893/1.062, allocations: 208.5 kB / 0.7735 GB, free: 131.6 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005172/1.062, allocations: 275 kB / 0.7738 GB, free: 131.3 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000199/1.062, allocations: 119.9 kB / 0.7739 GB, free: 131.2 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002927/1.065, allocations: 2.367 MB / 0.7762 GB, free: 128.8 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.11e-07/1.065, allocations: 0 / 0.7762 GB, free: 128.8 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004198/1.07, allocations: 1.448 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.01063/1.08, allocations: 9.51 MB / 0.7869 GB, free: 117.8 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.009346/1.09, allocations: 6.474 MB / 0.7932 GB, free: 111.3 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.374e-06/1.09, allocations: 0 / 0.7932 GB, free: 111.3 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004229/1.094, allocations: 3.085 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.00668/1.101, allocations: 0.7776 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.1059/1.206, allocations: 59.56 MB / 0.8551 GB, free: 43.19 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005373/1.212, allocations: 5.016 MB / 0.86 GB, free: 38.13 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.00481/1.217, allocations: 1.59 MB / 0.8616 GB, free: 36.54 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003669/1.22, allocations: 2.749 MB / 0.8643 GB, free: 33.79 MB / 494.1 MB Notification: Performance of SimCode: time 7.61e-07/1.22, allocations: 0 / 0.8643 GB, free: 33.79 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3165/1.537, allocations: 109.5 MB / 0.9712 GB, free: 105.8 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001331/1.537, allocations: 219.8 kB / 0.9714 GB, free: 105.6 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.806/5.343, allocations: 0 / 0.9714 GB, free: 105.6 MB / 494.1 MB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve2_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve2.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe 2>&1)