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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001272/0.001272, allocations: 107.2 kB / 16.45 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.429/1.429, allocations: 225.6 MB / 244.8 MB, free: 14.19 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002343/0.002343, allocations: 183.9 kB / 299.8 MB, free: 9.848 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.05516/0.05516, allocations: 8.93 MB / 363.6 MB, free: 10.18 MB / 302.1 MB " [Timeout remaining time 180] 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_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: Performance of FrontEnd - loaded program: time 0.002346/0.002346, allocations: 89.56 kB / 486.1 MB, free: 11.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.101/0.1033, allocations: 54.41 MB / 0.5279 GB, free: 1.309 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve4): time 0.02952/0.1329, allocations: 25.55 MB / 0.5528 GB, free: 7.637 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01759/0.1504, allocations: 7.979 MB / 0.5606 GB, free: 15.63 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004502/0.1549, allocations: 171.5 kB / 0.5608 GB, free: 15.46 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0184/0.1733, allocations: 7.713 MB / 0.5683 GB, free: 7.73 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009652/0.183, allocations: 3.116 MB / 0.5713 GB, free: 4.605 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006042/0.189, allocations: 2.018 MB / 0.5733 GB, free: 2.59 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01377/0.2028, allocations: 9.225 MB / 0.5823 GB, free: 9.332 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02314/0.2259, allocations: 12.81 MB / 0.5948 GB, free: 12.39 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007766/0.2337, allocations: 4.769 MB / 0.5995 GB, free: 7.605 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008842/0.2426, allocations: 5.307 MB / 0.6047 GB, free: 2.281 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003654/0.2462, allocations: 1.355 MB / 0.606 GB, free: 0.9258 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005693/0.2519, allocations: 1.714 MB / 0.6077 GB, free: 15.21 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004623/0.2565, allocations: 2.689 MB / 0.6103 GB, free: 12.52 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0114/0.2679, allocations: 5.078 MB / 0.6152 GB, free: 7.418 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02479/0.2927, allocations: 18.2 MB / 0.633 GB, free: 5.16 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.722e-06/0.2927, allocations: 0 / 0.633 GB, free: 5.16 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.2927, allocations: 4 kB / 0.633 GB, free: 5.156 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004172/0.2931, allocations: 0 / 0.633 GB, free: 5.156 MB / 446.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.2546/0.5478, allocations: 10.93 MB / 0.6437 GB, free: 84.84 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.05e-05/0.5478, allocations: 12.38 kB / 0.6437 GB, free: 84.84 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005154/0.553, allocations: 1.266 MB / 0.6449 GB, free: 84.22 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03187/0.5848, allocations: 5.721 MB / 0.6505 GB, free: 81.97 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0144/0.5992, allocations: 5.82 MB / 0.6562 GB, free: 78.27 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006767/0.5999, allocations: 0.5789 MB / 0.6568 GB, free: 78.01 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003632/0.6036, allocations: 0.7596 MB / 0.6575 GB, free: 77.77 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04041/0.644, allocations: 12.78 MB / 0.67 GB, free: 65.66 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006285/0.6446, allocations: 15.89 kB / 0.67 GB, free: 65.65 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003747/0.6483, allocations: 319.2 kB / 0.6703 GB, free: 65.35 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008057/0.6491, allocations: 0.5006 MB / 0.6708 GB, free: 64.84 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03466/0.6838, allocations: 12.26 MB / 0.6828 GB, free: 52.57 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08555/0.7694, allocations: 43.37 MB / 0.7251 GB, free: 8.484 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02366/0.793, allocations: 24.8 MB / 0.7494 GB, free: 12.79 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005506/0.7985, allocations: 2.716 MB / 0.752 GB, free: 10.07 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005855/0.7991, allocations: 241.7 kB / 0.7522 GB, free: 9.797 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005209/0.8043, allocations: 2.587 MB / 0.7548 GB, free: 7.141 MB / 478.1 MB Notification: Performance of pre-optimization done (n=391): time 8.956e-06/0.8043, allocations: 0 / 0.7548 GB, free: 7.141 MB / 478.1 MB Notification: Performance of matching and sorting (n=397): time 0.04825/0.8526, allocations: 18.4 MB / 0.7727 GB, free: 4.676 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002256/0.8528, allocations: 355.5 kB / 0.7731 GB, free: 4.254 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006969/0.8598, allocations: 3.531 MB / 0.7765 GB, free: 0.7188 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007107/0.8605, allocations: 89.7 kB / 0.7766 GB, free: 0.625 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003059/0.8635, allocations: 3.499 MB / 0.78 GB, free: 13.09 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001999/0.8655, allocations: 1.414 MB / 0.7814 GB, free: 11.67 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00308/0.8686, allocations: 1.089 MB / 0.7825 GB, free: 10.57 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001412/0.8688, allocations: 301.1 kB / 0.7827 GB, free: 10.27 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004879/0.8736, allocations: 2.549 MB / 0.7852 GB, free: 7.719 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007077/0.8807, allocations: 4.512 MB / 0.7896 GB, free: 2.324 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01294/0.8937, allocations: 7.451 MB / 0.7969 GB, free: 10 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.918e-05/0.8937, allocations: 19.98 kB / 0.7969 GB, free: 9.98 MB / 0.5137 GB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01855/0.9123, allocations: 8.263 MB / 0.805 GB, free: 1.691 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001267/0.9124, allocations: 57.7 kB / 0.8051 GB, free: 1.629 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001286/0.9125, allocations: 60 kB / 0.8051 GB, free: 1.57 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003092/0.9156, allocations: 0.9983 MB / 0.8061 GB, free: 0.5703 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005211/0.9208, allocations: 1.26 MB / 0.8073 GB, free: 15.31 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01474/0.9356, allocations: 8.823 MB / 0.8159 GB, free: 6.332 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004365/0.9399, allocations: 359.5 kB / 0.8163 GB, free: 5.98 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009584/0.9409, allocations: 264 kB / 0.8165 GB, free: 5.723 MB / 0.5294 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.007244/0.9481, allocations: 2.906 MB / 0.8194 GB, free: 2.797 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001672/0.9498, allocations: 405.4 kB / 0.8198 GB, free: 2.398 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0173/0.9671, allocations: 6.148 MB / 0.8258 GB, free: 12.2 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.4e-05/0.9672, allocations: 43.94 kB / 0.8258 GB, free: 12.16 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.526e-05/0.9672, allocations: 12 kB / 0.8258 GB, free: 12.14 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.252e-05/0.9673, allocations: 23.92 kB / 0.8258 GB, free: 12.12 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03338/1.001, allocations: 14.62 MB / 0.8401 GB, free: 13.32 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.04e-05/1.001, allocations: 4.594 kB / 0.8401 GB, free: 13.32 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003167/1.004, allocations: 0.6904 MB / 0.8408 GB, free: 12.63 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002787/1.007, allocations: 0.8692 MB / 0.8416 GB, free: 11.76 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005769/1.007, allocations: 92.17 kB / 0.8417 GB, free: 11.67 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01302/1.02, allocations: 7.757 MB / 0.8493 GB, free: 3.762 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.835e-06/1.02, allocations: 4.078 kB / 0.8493 GB, free: 3.758 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4307/1.451, allocations: 8.764 MB / 0.8579 GB, free: 192.5 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002521/1.453, allocations: 0.9253 MB / 0.8588 GB, free: 192.2 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006971/1.454, allocations: 72.62 kB / 0.8588 GB, free: 192.1 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002066/1.456, allocations: 198.3 kB / 0.859 GB, free: 192 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006135/1.457, allocations: 279.5 kB / 0.8593 GB, free: 192 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002432/1.457, allocations: 111.8 kB / 0.8594 GB, free: 192 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.003343/1.46, allocations: 2.363 MB / 0.8617 GB, free: 191.1 MB / 0.5607 GB Notification: Performance of sort global known variables: time 1.2e-07/1.46, allocations: 3.969 kB / 0.8617 GB, free: 191.1 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.004867/1.465, allocations: 1.455 MB / 0.8631 GB, free: 190.9 MB / 0.5607 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.01161/1.477, allocations: 9.471 MB / 0.8724 GB, free: 186.6 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.009181/1.486, allocations: 6.218 MB / 0.8785 GB, free: 184.2 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 1.097e-05/1.486, allocations: 0 / 0.8785 GB, free: 184.2 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.004835/1.491, allocations: 2.879 MB / 0.8813 GB, free: 183 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004178/1.495, allocations: 0.8143 MB / 0.8821 GB, free: 182.7 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08435/1.579, allocations: 48.2 MB / 0.9291 GB, free: 138.5 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007197/1.587, allocations: 5.001 MB / 0.934 GB, free: 133.5 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.004701/1.591, allocations: 1.588 MB / 0.9356 GB, free: 131.9 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003976/1.595, allocations: 2.756 MB / 0.9383 GB, free: 129.1 MB / 0.5607 GB Notification: Performance of SimCode: time 1.212e-06/1.595, allocations: 0 / 0.9383 GB, free: 129.1 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3174/1.913, allocations: 112.7 MB / 1.048 GB, free: 16.95 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.95/20.86, allocations: 22.91 kB / 1.048 GB, free: 16.93 MB / 0.5607 GB " [Timeout remaining time 639] (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: 24.29730050312355] Failed to read output from testmodel.py, exit status != 0: 21.179610807914287 21.018713941 20.723680602 Calling exit ...