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.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.001636/0.001636, allocations: 108.2 kB / 16.46 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.421/1.421, allocations: 225.6 MB / 244.8 MB, free: 14.16 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.001525/0.001525, allocations: 205.7 kB / 299.8 MB, free: 9.812 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.03969/0.03969, allocations: 8.94 MB / 363.6 MB, free: 10.16 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_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: Performance of FrontEnd - loaded program: time 0.002424/0.002424, allocations: 81.95 kB / 486.1 MB, free: 11.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.1099, allocations: 54.41 MB / 0.5278 GB, free: 1.312 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve1): time 0.02782/0.1377, allocations: 25.52 MB / 0.5528 GB, free: 7.672 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01884/0.1566, allocations: 7.971 MB / 0.5605 GB, free: 15.67 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005127/0.1617, allocations: 179.5 kB / 0.5607 GB, free: 15.5 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01899/0.1807, allocations: 7.722 MB / 0.5682 GB, free: 7.754 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01068/0.1914, allocations: 3.112 MB / 0.5713 GB, free: 4.633 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006854/0.1982, allocations: 2.021 MB / 0.5733 GB, free: 2.617 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01481/0.213, allocations: 9.226 MB / 0.5823 GB, free: 9.355 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02257/0.2356, allocations: 12.81 MB / 0.5948 GB, free: 12.42 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008344/0.244, allocations: 4.769 MB / 0.5994 GB, free: 7.637 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01037/0.2543, allocations: 5.307 MB / 0.6046 GB, free: 2.312 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004984/0.2593, allocations: 1.355 MB / 0.6059 GB, free: 0.957 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006621/0.2659, allocations: 1.718 MB / 0.6076 GB, free: 15.24 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004795/0.2707, allocations: 2.681 MB / 0.6102 GB, free: 12.55 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01032/0.281, allocations: 5.082 MB / 0.6152 GB, free: 7.449 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02398/0.305, allocations: 18.2 MB / 0.633 GB, free: 5.195 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.374e-06/0.305, allocations: 4 kB / 0.633 GB, free: 5.191 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.405e-06/0.305, allocations: 0 / 0.633 GB, free: 5.191 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004641/0.3055, allocations: 0 / 0.633 GB, free: 5.191 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.4622/0.7677, allocations: 10.93 MB / 0.6436 GB, free: 84.93 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.204e-05/0.7677, allocations: 11.38 kB / 0.6437 GB, free: 84.93 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003795/0.7715, allocations: 1.269 MB / 0.6449 GB, free: 84.31 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03113/0.8026, allocations: 5.725 MB / 0.6505 GB, free: 82.07 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01299/0.8156, allocations: 5.812 MB / 0.6562 GB, free: 78.36 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005899/0.8162, allocations: 0.5818 MB / 0.6567 GB, free: 78.11 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003584/0.8198, allocations: 0.7573 MB / 0.6575 GB, free: 77.86 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03398/0.8538, allocations: 12.77 MB / 0.6699 GB, free: 65.72 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004623/0.8542, allocations: 19.89 kB / 0.67 GB, free: 65.7 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003128/0.8574, allocations: 326.7 kB / 0.6703 GB, free: 65.4 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000416/0.8578, allocations: 0.5006 MB / 0.6708 GB, free: 64.89 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02472/0.8825, allocations: 12.25 MB / 0.6827 GB, free: 52.62 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07026/0.9527, allocations: 43.37 MB / 0.7251 GB, free: 8.539 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02567/0.9784, allocations: 24.8 MB / 0.7493 GB, free: 12.85 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005794/0.9842, allocations: 2.721 MB / 0.752 GB, free: 10.12 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004823/0.9847, allocations: 236.7 kB / 0.7522 GB, free: 9.863 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004587/0.9893, allocations: 2.583 MB / 0.7547 GB, free: 7.211 MB / 478.1 MB Notification: Performance of pre-optimization done (n=391): time 6.102e-06/0.9893, allocations: 0 / 0.7547 GB, free: 7.211 MB / 478.1 MB Notification: Performance of matching and sorting (n=397): time 0.04312/1.032, allocations: 18.4 MB / 0.7727 GB, free: 4.754 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002236/1.033, allocations: 351.5 kB / 0.773 GB, free: 4.336 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006181/1.039, allocations: 3.531 MB / 0.7765 GB, free: 0.8008 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007505/1.04, allocations: 85.7 kB / 0.7765 GB, free: 0.7109 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003462/1.043, allocations: 3.496 MB / 0.78 GB, free: 13.18 MB / 0.4982 GB Notification: Performance of collectInitialBindings (initialization): time 0.002106/1.045, allocations: 1.422 MB / 0.7813 GB, free: 11.75 MB / 0.4982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001957/1.047, allocations: 1.081 MB / 0.7824 GB, free: 10.66 MB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 0.0001639/1.047, allocations: 305.1 kB / 0.7827 GB, free: 10.36 MB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004329/1.052, allocations: 2.545 MB / 0.7852 GB, free: 7.809 MB / 0.4982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006887/1.058, allocations: 4.512 MB / 0.7896 GB, free: 2.414 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01207/1.071, allocations: 7.455 MB / 0.7969 GB, free: 10.09 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.411e-05/1.071, allocations: 20 kB / 0.7969 GB, free: 10.07 MB / 0.5138 GB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01802/1.089, allocations: 8.267 MB / 0.805 GB, free: 1.773 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001291/1.089, allocations: 61.64 kB / 0.805 GB, free: 1.707 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001514/1.089, allocations: 60 kB / 0.8051 GB, free: 1.648 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003124/1.092, allocations: 0.9942 MB / 0.806 GB, free: 0.6523 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005041/1.097, allocations: 1.271 MB / 0.8073 GB, free: 15.38 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01502/1.112, allocations: 8.819 MB / 0.8159 GB, free: 6.406 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004934/1.117, allocations: 351.5 kB / 0.8162 GB, free: 6.062 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001133/1.118, allocations: 264 kB / 0.8165 GB, free: 5.805 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.006975/1.125, allocations: 2.906 MB / 0.8193 GB, free: 2.879 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001427/1.127, allocations: 409.3 kB / 0.8197 GB, free: 2.477 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01387/1.14, allocations: 6.156 MB / 0.8257 GB, free: 12.27 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-05/1.14, allocations: 48 kB / 0.8258 GB, free: 12.22 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.619e-05/1.141, allocations: 8 kB / 0.8258 GB, free: 12.21 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.619e-05/1.141, allocations: 19.92 kB / 0.8258 GB, free: 12.19 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03779/1.178, allocations: 14.61 MB / 0.8401 GB, free: 13.4 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.617e-05/1.178, allocations: 4 kB / 0.8401 GB, free: 13.4 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003245/1.182, allocations: 0.6826 MB / 0.8407 GB, free: 12.71 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002825/1.184, allocations: 0.8814 MB / 0.8416 GB, free: 11.83 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006244/1.185, allocations: 83.98 kB / 0.8417 GB, free: 11.75 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0134/1.198, allocations: 7.764 MB / 0.8493 GB, free: 3.84 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.047e-06/1.199, allocations: 4 kB / 0.8493 GB, free: 3.836 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2852/1.484, allocations: 8.76 MB / 0.8578 GB, free: 192.4 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002848/1.487, allocations: 0.9324 MB / 0.8587 GB, free: 192.1 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006871/1.487, allocations: 76.36 kB / 0.8588 GB, free: 192 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001951/1.489, allocations: 198.3 kB / 0.859 GB, free: 192 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005591/1.49, allocations: 271.5 kB / 0.8593 GB, free: 191.9 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002211/1.49, allocations: 112.7 kB / 0.8594 GB, free: 191.9 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.003067/1.493, allocations: 2.366 MB / 0.8617 GB, free: 191 MB / 0.5607 GB Notification: Performance of sort global known variables: time 9e-08/1.493, allocations: 3.969 kB / 0.8617 GB, free: 191 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.004395/1.497, allocations: 1.448 MB / 0.8631 GB, free: 190.8 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.01114/1.509, allocations: 9.477 MB / 0.8723 GB, free: 186.5 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.009348/1.518, allocations: 6.207 MB / 0.8784 GB, free: 184.2 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 1.075e-05/1.518, allocations: 7.875 kB / 0.8784 GB, free: 184.2 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.004585/1.522, allocations: 2.878 MB / 0.8812 GB, free: 183 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004976/1.527, allocations: 0.8196 MB / 0.882 GB, free: 182.7 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07235/1.6, allocations: 48.18 MB / 0.9291 GB, free: 138.6 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004475/1.604, allocations: 5.007 MB / 0.934 GB, free: 133.5 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.0051/1.609, allocations: 1.594 MB / 0.9355 GB, free: 131.9 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004063/1.613, allocations: 2.753 MB / 0.9382 GB, free: 129.2 MB / 0.5607 GB Notification: Performance of SimCode: time 1.112e-06/1.613, allocations: 0 / 0.9382 GB, free: 129.2 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2079/1.821, allocations: 112.7 MB / 1.048 GB, free: 17 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.06/20.88, allocations: 14.3 kB / 1.048 GB, free: 16.98 MB / 0.5607 GB " [Timeout remaining time 639] (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: 24.553839792963117] Failed to read output from testmodel.py, exit status != 0: 21.20253543416038 21.058531871 20.748612761 Calling exit ...