Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001286/0.001286, allocations: 101.3 kB / 19.73 MB, free: 2.133 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.401/1.401, allocations: 230.6 MB / 253.4 MB, free: 14.29 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001499/0.001499, allocations: 215.5 kB / 310 MB, free: 3.035 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo): time 0.04068/0.04068, allocations: 8.928 MB / 375.4 MB, free: 6.578 MB / 302.1 MB " [Timeout remaining time 180] Using package HanserModelica with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_VCurve4,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve4",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_VCurve4,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve4",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: HanserModelica requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: HanserModelica requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00237/0.00237, allocations: 79.88 kB / 0.4899 GB, free: 44.71 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08095/0.08332, allocations: 55.61 MB / 0.5443 GB, free: 5 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve4): time 0.2182/0.3015, allocations: 21.98 MB / 0.5657 GB, free: 9.289 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01254/0.3141, allocations: 7.678 MB / 0.5732 GB, free: 9.176 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004289/0.3184, allocations: 202 kB / 0.5734 GB, free: 9.176 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01559/0.3339, allocations: 7.157 MB / 0.5804 GB, free: 7.77 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009114/0.3431, allocations: 3.121 MB / 0.5834 GB, free: 6.367 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005514/0.3486, allocations: 2.011 MB / 0.5854 GB, free: 5.383 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01143/0.36, allocations: 9.408 MB / 0.5946 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02007/0.3801, allocations: 11.44 MB / 0.6058 GB, free: 10.06 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008138/0.3882, allocations: 4.873 MB / 0.6105 GB, free: 7.207 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008993/0.3972, allocations: 5.365 MB / 0.6158 GB, free: 3.602 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003139/0.4003, allocations: 1.355 MB / 0.6171 GB, free: 3.121 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005465/0.4058, allocations: 1.734 MB / 0.6188 GB, free: 1.387 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004132/0.4099, allocations: 2.689 MB / 0.6214 GB, free: 14.69 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008445/0.4184, allocations: 3.954 MB / 0.6253 GB, free: 10.72 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02292/0.4413, allocations: 18.3 MB / 0.6431 GB, free: 8.363 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.4413, allocations: 0 / 0.6431 GB, free: 8.363 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.4413, allocations: 4 kB / 0.6431 GB, free: 8.359 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003918/0.4417, allocations: 0 / 0.6431 GB, free: 8.359 MB / 430.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.03163/0.4733, allocations: 10.89 MB / 0.6538 GB, free: 13.39 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.934e-05/0.4734, allocations: 15.98 kB / 0.6538 GB, free: 13.37 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0002791/0.4737, allocations: 240 kB / 0.654 GB, free: 13.14 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004186/0.4778, allocations: 1.264 MB / 0.6552 GB, free: 11.86 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03291/0.5108, allocations: 5.672 MB / 0.6608 GB, free: 6.18 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01379/0.5245, allocations: 5.856 MB / 0.6665 GB, free: 268 kB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006692/0.5252, allocations: 0.5781 MB / 0.6671 GB, free: 15.68 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002983/0.5282, allocations: 0.7655 MB / 0.6678 GB, free: 14.92 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.031/0.5592, allocations: 13 MB / 0.6805 GB, free: 1.816 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002706/0.5595, allocations: 15.91 kB / 0.6805 GB, free: 1.801 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00195/0.5614, allocations: 324 kB / 0.6808 GB, free: 1.484 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000586/0.562, allocations: 0.5007 MB / 0.6813 GB, free: 0.9805 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02671/0.5887, allocations: 12.3 MB / 0.6933 GB, free: 4.656 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07056/0.6593, allocations: 38.03 MB / 0.7305 GB, free: 13.66 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01798/0.6773, allocations: 8.924 MB / 0.7392 GB, free: 5.715 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004908/0.6822, allocations: 2.737 MB / 0.7419 GB, free: 2.98 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000406/0.6826, allocations: 103 kB / 0.742 GB, free: 2.879 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004422/0.687, allocations: 2.808 MB / 0.7447 GB, free: 15.95 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=399): time 7.644e-06/0.687, allocations: 0 / 0.7447 GB, free: 15.95 MB / 0.5294 GB Notification: Performance of matching and sorting (n=482): time 0.06678/0.7538, allocations: 29.11 MB / 0.7731 GB, free: 2.719 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.3862/1.14, allocations: 18.33 MB / 0.791 GB, free: 161.4 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005144/1.145, allocations: 3.535 MB / 0.7945 GB, free: 160.2 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0008169/1.146, allocations: 102 kB / 0.7946 GB, free: 160.1 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002142/1.148, allocations: 3.499 MB / 0.798 GB, free: 158.5 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001656/1.15, allocations: 1.707 MB / 0.7997 GB, free: 157.3 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002027/1.152, allocations: 1.212 MB / 0.8009 GB, free: 156.8 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 3.824e-05/1.152, allocations: 307.1 kB / 0.8011 GB, free: 156.5 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004554/1.156, allocations: 3.034 MB / 0.8041 GB, free: 155.3 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00555/1.162, allocations: 5.216 MB / 0.8092 GB, free: 151.4 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0102/1.172, allocations: 8.501 MB / 0.8175 GB, free: 145.9 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001021/1.172, allocations: 19.84 kB / 0.8175 GB, free: 145.9 MB / 0.545 GB Notification: Performance of matching and sorting (n=807) (initialization): time 0.01599/1.188, allocations: 10.15 MB / 0.8274 GB, free: 141.8 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 7.26e-05/1.188, allocations: 58.33 kB / 0.8275 GB, free: 141.7 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001111/1.188, allocations: 61.59 kB / 0.8276 GB, free: 141.7 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004785/1.193, allocations: 1.996 MB / 0.8295 GB, free: 141.3 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00444/1.198, allocations: 1.329 MB / 0.8308 GB, free: 141.1 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01998/1.218, allocations: 17.85 MB / 0.8482 GB, free: 125.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004631/1.222, allocations: 397.8 kB / 0.8486 GB, free: 124.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007681/1.223, allocations: 299.9 kB / 0.8489 GB, free: 124.5 MB / 0.545 GB 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 (693): * Single equations (assignments): 690 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(10,48,53.0%), (10,48,50.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00391/1.227, allocations: 2.984 MB / 0.8518 GB, free: 121.6 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008719/1.228, allocations: 437.2 kB / 0.8522 GB, free: 121.1 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0117/1.239, allocations: 8.191 MB / 0.8602 GB, free: 112.9 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.748e-05/1.239, allocations: 48 kB / 0.8603 GB, free: 112.9 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.268e-05/1.239, allocations: 12 kB / 0.8603 GB, free: 112.9 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.071e-05/1.24, allocations: 27.91 kB / 0.8603 GB, free: 112.8 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03033/1.27, allocations: 21.41 MB / 0.8812 GB, free: 91.38 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.049e-05/1.27, allocations: 3.984 kB / 0.8812 GB, free: 91.38 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002731/1.273, allocations: 0.7294 MB / 0.8819 GB, free: 90.64 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004824/1.277, allocations: 1.93 MB / 0.8838 GB, free: 88.7 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000575/1.278, allocations: 107.9 kB / 0.8839 GB, free: 88.59 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01895/1.297, allocations: 16.57 MB / 0.9001 GB, free: 71.81 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02056/1.318, allocations: 16.63 MB / 0.9163 GB, free: 54.83 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01545/1.333, allocations: 11.37 MB / 0.9275 GB, free: 43.26 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002478/1.335, allocations: 0.9968 MB / 0.9284 GB, free: 42.26 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00096/1.336, allocations: 90.5 kB / 0.9285 GB, free: 42.17 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002626/1.339, allocations: 223.8 kB / 0.9287 GB, free: 41.95 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008052/1.34, allocations: 364.1 kB / 0.9291 GB, free: 41.59 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002804/1.34, allocations: 136 kB / 0.9292 GB, free: 41.46 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003068/1.343, allocations: 2.363 MB / 0.9315 GB, free: 39.11 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.9e-07/1.343, allocations: 0 / 0.9315 GB, free: 39.11 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005986/1.349, allocations: 1.711 MB / 0.9332 GB, free: 37.39 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 3 ($STATESET1.x,smee.rotorCage.port_p.reference.gamma,voltageSource.plug_p.reference.gamma) * 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 (396): * Single equations (assignments): 393 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,40,51.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(11,56)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01567/1.365, allocations: 12.12 MB / 0.945 GB, free: 25.08 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01201/1.377, allocations: 7.973 MB / 0.9528 GB, free: 17.04 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 9.408e-06/1.377, allocations: 4 kB / 0.9528 GB, free: 17.04 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.006682/1.384, allocations: 4.105 MB / 0.9568 GB, free: 12.9 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004368/1.388, allocations: 0.8456 MB / 0.9576 GB, free: 12.08 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2902/1.678, allocations: 54.87 MB / 1.011 GB, free: 183.5 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005201/1.683, allocations: 4.733 MB / 1.016 GB, free: 183.1 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.004203/1.687, allocations: 1.638 MB / 1.017 GB, free: 183 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003137/1.691, allocations: 2.903 MB / 1.02 GB, free: 182.9 MB / 0.5763 GB Notification: Performance of SimCode: time 1.012e-06/1.691, allocations: 0 / 1.02 GB, free: 182.9 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.181/1.872, allocations: 139.7 MB / 1.157 GB, free: 63.52 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.48/26.35, allocations: 7.875 kB / 1.157 GB, free: 63.52 MB / 0.5763 GB " [Timeout remaining time 633] (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve4_fmu --startTime=0 --stopTime=200 --stepSize=0.1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve4.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 29.704186410992406] Failed to read output from testmodel.py, exit status != 0: 26.60134392499458 26.621972339 26.176567388 Calling exit ...