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.001292/0.001292, 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.373/1.373, 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.00162/0.00162, allocations: 208.2 kB / 309.2 MB, free: 3.18 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.04026/0.04026, allocations: 8.928 MB / 374.6 MB, free: 6.598 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_VCurve4,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve4",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.00245/0.00245, allocations: 91.88 kB / 0.4892 GB, free: 44.73 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08/0.08245, allocations: 55.61 MB / 0.5435 GB, free: 5.023 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve4): time 0.2197/0.3022, allocations: 21.99 MB / 0.565 GB, free: 9.875 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01344/0.3156, allocations: 7.701 MB / 0.5725 GB, free: 9.762 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004381/0.32, allocations: 202.9 kB / 0.5727 GB, free: 9.762 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01591/0.3359, allocations: 7.16 MB / 0.5797 GB, free: 7.98 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009176/0.3451, allocations: 3.093 MB / 0.5827 GB, free: 6.605 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005701/0.3508, allocations: 2.013 MB / 0.5847 GB, free: 5.617 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01228/0.3631, allocations: 9.396 MB / 0.5938 GB, free: 1.102 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02154/0.3846, allocations: 11.26 MB / 0.6048 GB, free: 10.46 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008687/0.3933, allocations: 4.875 MB / 0.6096 GB, free: 7.609 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009784/0.4031, allocations: 5.046 MB / 0.6145 GB, free: 4.348 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00358/0.4067, allocations: 1.354 MB / 0.6158 GB, free: 3.84 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00617/0.4128, allocations: 1.726 MB / 0.6175 GB, free: 2.113 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00461/0.4174, allocations: 2.673 MB / 0.6201 GB, free: 15.43 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008924/0.4264, allocations: 3.957 MB / 0.624 GB, free: 11.46 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02508/0.4514, allocations: 18.29 MB / 0.6419 GB, free: 9.113 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.376e-06/0.4515, allocations: 3.938 kB / 0.6419 GB, free: 9.109 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.4515, allocations: 0 / 0.6419 GB, free: 9.109 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0005086/0.452, allocations: 0 / 0.6419 GB, free: 9.109 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.03187/0.4838, allocations: 10.88 MB / 0.6525 GB, free: 14.14 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.569e-05/0.4839, allocations: 11.98 kB / 0.6525 GB, free: 14.13 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003356/0.4872, allocations: 1.268 MB / 0.6537 GB, free: 12.85 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03201/0.5192, allocations: 5.657 MB / 0.6593 GB, free: 7.184 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01379/0.533, allocations: 5.848 MB / 0.665 GB, free: 1.273 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006044/0.5336, allocations: 0.5819 MB / 0.6656 GB, free: 0.6914 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00266/0.5363, allocations: 0.7656 MB / 0.6663 GB, free: 15.92 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03374/0.57, allocations: 12.98 MB / 0.679 GB, free: 2.844 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002691/0.5703, allocations: 15.84 kB / 0.679 GB, free: 2.828 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001973/0.5723, allocations: 327.9 kB / 0.6793 GB, free: 2.508 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006051/0.5729, allocations: 0.4967 MB / 0.6798 GB, free: 2.008 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02668/0.5996, allocations: 12.23 MB / 0.6917 GB, free: 5.754 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0729/0.6725, allocations: 37.99 MB / 0.7288 GB, free: 14.8 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01863/0.6911, allocations: 8.909 MB / 0.7375 GB, free: 6.867 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004844/0.6959, allocations: 2.722 MB / 0.7402 GB, free: 4.145 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003156/0.6963, allocations: 94.98 kB / 0.7403 GB, free: 4.051 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004179/0.7004, allocations: 2.787 MB / 0.743 GB, free: 1.145 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=391): time 6.883e-06/0.7004, allocations: 3.938 kB / 0.743 GB, free: 1.141 MB / 0.5137 GB Notification: Performance of matching and sorting (n=397): time 0.04123/0.7417, allocations: 18.34 MB / 0.7609 GB, free: 14.67 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002327/0.7419, allocations: 359.4 kB / 0.7613 GB, free: 14.25 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005418/0.7473, allocations: 3.647 MB / 0.7648 GB, free: 10.59 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0004853/0.7478, allocations: 85.7 kB / 0.7649 GB, free: 10.5 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002653/0.7505, allocations: 3.503 MB / 0.7683 GB, free: 6.969 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001495/0.752, allocations: 1.422 MB / 0.7697 GB, free: 5.535 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001704/0.7537, allocations: 1.093 MB / 0.7708 GB, free: 4.434 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001429/0.7538, allocations: 301.1 kB / 0.7711 GB, free: 4.137 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004128/0.7579, allocations: 2.589 MB / 0.7736 GB, free: 1.535 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3916/1.15, allocations: 4.715 MB / 0.7782 GB, free: 163.6 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0091/1.159, allocations: 7.464 MB / 0.7855 GB, free: 160.6 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.743e-05/1.159, allocations: 17.72 kB / 0.7855 GB, free: 160.6 MB / 0.545 GB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01517/1.174, allocations: 8.32 MB / 0.7936 GB, free: 157.4 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 9.94e-05/1.174, allocations: 57.83 kB / 0.7937 GB, free: 157.4 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001338/1.174, allocations: 60.89 kB / 0.7937 GB, free: 157.4 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002734/1.177, allocations: 0.998 MB / 0.7947 GB, free: 157.2 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004574/1.181, allocations: 1.26 MB / 0.796 GB, free: 157.1 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01257/1.194, allocations: 8.554 MB / 0.8043 GB, free: 152.4 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004644/1.199, allocations: 358 kB / 0.8046 GB, free: 152.3 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009855/1.2, allocations: 276.2 kB / 0.8049 GB, free: 152.3 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.005707/1.205, allocations: 2.898 MB / 0.8077 GB, free: 150.7 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00101/1.206, allocations: 402.8 kB / 0.8081 GB, free: 150.7 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009419/1.216, allocations: 6.179 MB / 0.8142 GB, free: 148.2 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.486e-05/1.216, allocations: 39.45 kB / 0.8142 GB, free: 148.2 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.548e-05/1.216, allocations: 12.69 kB / 0.8142 GB, free: 148.2 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.836e-05/1.216, allocations: 22.7 kB / 0.8142 GB, free: 148.2 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02119/1.237, allocations: 13.98 MB / 0.8279 GB, free: 142.4 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-05/1.237, allocations: 9.188 kB / 0.8279 GB, free: 142.4 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002425/1.24, allocations: 0.6877 MB / 0.8286 GB, free: 142.3 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002128/1.242, allocations: 0.8734 MB / 0.8294 GB, free: 141.8 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002438/1.242, allocations: 91.78 kB / 0.8295 GB, free: 141.7 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008836/1.251, allocations: 7.514 MB / 0.8368 GB, free: 135 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/1.251, allocations: 8.031 kB / 0.8368 GB, free: 135 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01162/1.262, allocations: 8.843 MB / 0.8455 GB, free: 126.5 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002651/1.265, allocations: 0.8566 MB / 0.8463 GB, free: 125.6 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009454/1.266, allocations: 81.73 kB / 0.8464 GB, free: 125.5 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002027/1.268, allocations: 191.8 kB / 0.8466 GB, free: 125.3 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005247/1.269, allocations: 292.4 kB / 0.8469 GB, free: 125.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000201/1.269, allocations: 120 kB / 0.847 GB, free: 124.9 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.002945/1.272, allocations: 2.359 MB / 0.8493 GB, free: 122.6 MB / 0.545 GB Notification: Performance of sort global known variables: time 1e-07/1.272, allocations: 4 kB / 0.8493 GB, free: 122.6 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.004823/1.276, allocations: 1.457 MB / 0.8507 GB, free: 121.1 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.01108/1.288, allocations: 9.552 MB / 0.86 GB, free: 111.4 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.009203/1.297, allocations: 6.283 MB / 0.8662 GB, free: 105.1 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 9.508e-06/1.297, allocations: 4 kB / 0.8662 GB, free: 105.1 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004351/1.301, allocations: 2.908 MB / 0.869 GB, free: 102.2 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003593/1.305, allocations: 0.8254 MB / 0.8698 GB, free: 101.4 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06507/1.37, allocations: 48.35 MB / 0.917 GB, free: 50.95 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004085/1.374, allocations: 4.531 MB / 0.9215 GB, free: 46.37 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003688/1.378, allocations: 1.59 MB / 0.923 GB, free: 44.78 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003076/1.381, allocations: 2.772 MB / 0.9257 GB, free: 42 MB / 0.545 GB Notification: Performance of SimCode: time 9.81e-07/1.381, allocations: 0 / 0.9257 GB, free: 42 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.374/1.755, allocations: 115.8 MB / 1.039 GB, free: 177.5 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.31/18.06, allocations: 6.453 kB / 1.039 GB, free: 177.5 MB / 0.5763 GB " [Timeout remaining time 642] (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: 20.99820156628266] Failed to read output from testmodel.py, exit status != 0: 18.23355834092945 18.244676071 17.790784084 Calling exit ...