Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.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.001269/0.001269, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.402/1.402, allocations: 230.6 MB / 252.7 MB, free: 14.27 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.001518/0.001518, allocations: 215.2 kB / 309.2 MB, free: 3.125 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.04061/0.04061, allocations: 8.918 MB / 374.6 MB, free: 6.617 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_VCurve1,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_VCurve1,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve1",fmuType="me",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.002482/0.002482, allocations: 87.86 kB / 0.4892 GB, free: 44.72 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08741/0.08989, allocations: 55.6 MB / 0.5435 GB, free: 5.02 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve1): time 0.2228/0.3127, allocations: 21.96 MB / 0.5649 GB, free: 9.309 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01263/0.3253, allocations: 7.707 MB / 0.5724 GB, free: 9.195 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003961/0.3293, allocations: 204 kB / 0.5726 GB, free: 9.195 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01594/0.3452, allocations: 7.167 MB / 0.5796 GB, free: 7.758 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009599/0.3548, allocations: 3.098 MB / 0.5827 GB, free: 6.375 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00587/0.3607, allocations: 2.002 MB / 0.5846 GB, free: 5.395 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01189/0.3726, allocations: 9.398 MB / 0.5938 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02052/0.3931, allocations: 11.24 MB / 0.6048 GB, free: 10.28 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008483/0.4016, allocations: 4.879 MB / 0.6095 GB, free: 7.426 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009262/0.4109, allocations: 5.046 MB / 0.6145 GB, free: 4.164 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003362/0.4142, allocations: 1.354 MB / 0.6158 GB, free: 3.656 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006266/0.4205, allocations: 1.718 MB / 0.6175 GB, free: 1.938 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004715/0.4252, allocations: 2.681 MB / 0.6201 GB, free: 15.25 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008435/0.4336, allocations: 3.957 MB / 0.6239 GB, free: 11.28 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02369/0.4573, allocations: 18.29 MB / 0.6418 GB, free: 8.926 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.081e-06/0.4573, allocations: 3.938 kB / 0.6418 GB, free: 8.922 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.4573, allocations: 4 kB / 0.6418 GB, free: 8.918 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0004933/0.4578, allocations: 0 / 0.6418 GB, free: 8.918 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.03374/0.4916, allocations: 10.87 MB / 0.6524 GB, free: 13.96 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.65e-05/0.4916, allocations: 15.98 kB / 0.6524 GB, free: 13.95 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004777/0.4964, allocations: 1.268 MB / 0.6537 GB, free: 12.67 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03314/0.5295, allocations: 5.665 MB / 0.6592 GB, free: 6.992 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01466/0.5442, allocations: 5.844 MB / 0.6649 GB, free: 1.086 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007149/0.5449, allocations: 0.5819 MB / 0.6655 GB, free: 0.5039 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00314/0.5481, allocations: 0.7655 MB / 0.6662 GB, free: 15.74 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03195/0.58, allocations: 12.98 MB / 0.6789 GB, free: 2.66 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003639/0.5804, allocations: 19.84 kB / 0.6789 GB, free: 2.641 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002333/0.5827, allocations: 328 kB / 0.6792 GB, free: 2.32 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006368/0.5833, allocations: 0.4967 MB / 0.6797 GB, free: 1.82 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02948/0.6128, allocations: 12.23 MB / 0.6917 GB, free: 5.566 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08199/0.6948, allocations: 37.99 MB / 0.7288 GB, free: 14.6 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0198/0.7146, allocations: 8.911 MB / 0.7375 GB, free: 6.668 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005616/0.7202, allocations: 2.718 MB / 0.7401 GB, free: 3.949 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000514/0.7207, allocations: 98.97 kB / 0.7402 GB, free: 3.852 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005295/0.726, allocations: 2.791 MB / 0.743 GB, free: 0.9453 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=391): time 9.147e-06/0.726, allocations: 0 / 0.743 GB, free: 0.9453 MB / 0.5137 GB Notification: Performance of matching and sorting (n=397): time 0.04677/0.7728, allocations: 18.34 MB / 0.7609 GB, free: 14.48 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002563/0.7731, allocations: 359.4 kB / 0.7612 GB, free: 14.05 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007338/0.7804, allocations: 3.643 MB / 0.7648 GB, free: 10.41 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0006476/0.7811, allocations: 89.7 kB / 0.7649 GB, free: 10.31 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.003147/0.7842, allocations: 3.507 MB / 0.7683 GB, free: 6.773 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002147/0.7863, allocations: 1.414 MB / 0.7697 GB, free: 5.348 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003372/0.7897, allocations: 1.101 MB / 0.7707 GB, free: 4.238 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001624/0.7899, allocations: 305.1 kB / 0.771 GB, free: 3.938 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005053/0.7949, allocations: 2.578 MB / 0.7735 GB, free: 1.348 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3898/1.185, allocations: 4.719 MB / 0.7781 GB, free: 163.2 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008907/1.194, allocations: 7.464 MB / 0.7854 GB, free: 160.3 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.649e-05/1.194, allocations: 18.05 kB / 0.7855 GB, free: 160.3 MB / 0.545 GB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01494/1.209, allocations: 8.314 MB / 0.7936 GB, free: 157.2 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001201/1.209, allocations: 62.36 kB / 0.7936 GB, free: 157.2 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001404/1.209, allocations: 60.16 kB / 0.7937 GB, free: 157.2 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002927/1.212, allocations: 0.9945 MB / 0.7947 GB, free: 157 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004633/1.216, allocations: 1.265 MB / 0.7959 GB, free: 156.8 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01275/1.229, allocations: 8.556 MB / 0.8043 GB, free: 152.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004523/1.234, allocations: 357.4 kB / 0.8046 GB, free: 152.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001105/1.235, allocations: 274.2 kB / 0.8049 GB, free: 152 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 (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.005312/1.24, allocations: 2.899 MB / 0.8077 GB, free: 150.5 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001118/1.241, allocations: 404.1 kB / 0.8081 GB, free: 150.5 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01085/1.252, allocations: 6.179 MB / 0.8141 GB, free: 148 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-05/1.252, allocations: 42.47 kB / 0.8141 GB, free: 148 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.787e-05/1.252, allocations: 7.781 kB / 0.8142 GB, free: 148 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.683e-05/1.252, allocations: 22.64 kB / 0.8142 GB, free: 148 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02505/1.277, allocations: 13.98 MB / 0.8278 GB, free: 142.1 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.08e-05/1.277, allocations: 3.25 kB / 0.8278 GB, free: 142.1 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002795/1.28, allocations: 0.6883 MB / 0.8285 GB, free: 142 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002531/1.283, allocations: 0.8753 MB / 0.8294 GB, free: 141.4 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006072/1.283, allocations: 95.39 kB / 0.8295 GB, free: 141.3 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009386/1.293, allocations: 7.501 MB / 0.8368 GB, free: 134.7 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.44e-06/1.293, allocations: 8.031 kB / 0.8368 GB, free: 134.6 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01205/1.305, allocations: 8.849 MB / 0.8454 GB, free: 126.1 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002383/1.307, allocations: 0.8564 MB / 0.8463 GB, free: 125.2 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00096/1.308, allocations: 77.11 kB / 0.8463 GB, free: 125.1 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002443/1.31, allocations: 190.8 kB / 0.8465 GB, free: 125 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005751/1.311, allocations: 295 kB / 0.8468 GB, free: 124.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002758/1.311, allocations: 120 kB / 0.8469 GB, free: 124.6 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003541/1.315, allocations: 2.363 MB / 0.8492 GB, free: 122.2 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.11e-07/1.315, allocations: 0 / 0.8492 GB, free: 122.2 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005181/1.32, allocations: 1.453 MB / 0.8506 GB, free: 120.7 MB / 0.545 GB 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.01256/1.333, allocations: 9.561 MB / 0.86 GB, free: 111.1 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.009517/1.342, allocations: 6.283 MB / 0.8661 GB, free: 104.7 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 9.798e-06/1.342, allocations: 0 / 0.8661 GB, free: 104.7 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004477/1.347, allocations: 2.912 MB / 0.869 GB, free: 101.8 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004481/1.351, allocations: 0.8229 MB / 0.8698 GB, free: 101 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07244/1.424, allocations: 48.34 MB / 0.917 GB, free: 50.57 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006374/1.43, allocations: 4.531 MB / 0.9214 GB, free: 45.98 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004556/1.434, allocations: 1.586 MB / 0.9229 GB, free: 44.39 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004069/1.439, allocations: 2.776 MB / 0.9256 GB, free: 41.62 MB / 0.545 GB Notification: Performance of SimCode: time 1.553e-06/1.439, allocations: 0 / 0.9256 GB, free: 41.62 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4021/1.841, allocations: 115.8 MB / 1.039 GB, free: 177.2 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.19/18.03, allocations: 8.375 kB / 1.039 GB, free: 177.2 MB / 0.5763 GB " [Timeout remaining time 642] (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve1_fmu --startTime=0 --stopTime=200 --stepSize=0.1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve1.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 21.167486886959523] Failed to read output from testmodel.py, exit status != 0: 18.20260312408209 18.221737685 17.760642933 Calling exit ...