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.001768/0.001768, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.577/1.577, allocations: 230.6 MB / 252.6 MB, free: 8.301 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.001778/0.001778, allocations: 219.2 kB / 309.2 MB, free: 3.137 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.04316/0.04316, allocations: 8.919 MB / 374.6 MB, free: 1.895 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.002845/0.002845, allocations: 87.84 kB / 0.4892 GB, free: 7.328 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2813/0.2842, allocations: 55.6 MB / 0.5435 GB, free: 26.76 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve1): time 0.01958/0.3038, allocations: 25.65 MB / 0.5686 GB, free: 8.301 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01636/0.3201, allocations: 8.079 MB / 0.5765 GB, free: 2.48 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00568/0.3258, allocations: 201.6 kB / 0.5767 GB, free: 2.422 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02102/0.3468, allocations: 7.763 MB / 0.5842 GB, free: 13.81 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01143/0.3582, allocations: 3.185 MB / 0.5874 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007337/0.3656, allocations: 2.079 MB / 0.5894 GB, free: 9.926 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01666/0.3822, allocations: 9.413 MB / 0.5986 GB, free: 4.152 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02693/0.4092, allocations: 11.34 MB / 0.6097 GB, free: 9.199 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01026/0.4194, allocations: 4.886 MB / 0.6144 GB, free: 4.301 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01108/0.4305, allocations: 5.377 MB / 0.6197 GB, free: 14.91 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004576/0.4351, allocations: 1.355 MB / 0.621 GB, free: 13.55 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00675/0.4419, allocations: 1.742 MB / 0.6227 GB, free: 11.81 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005525/0.4474, allocations: 2.677 MB / 0.6253 GB, free: 9.125 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01324/0.4606, allocations: 5.086 MB / 0.6303 GB, free: 4.02 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03/0.4906, allocations: 18.23 MB / 0.6481 GB, free: 1.727 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.634e-06/0.4906, allocations: 3.938 kB / 0.6481 GB, free: 1.723 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.4906, allocations: 0 / 0.6481 GB, free: 1.723 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.000599/0.4912, allocations: 0 / 0.6481 GB, free: 1.723 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.03876/0.53, allocations: 10.88 MB / 0.6587 GB, free: 6.754 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.617e-05/0.5301, allocations: 16.03 kB / 0.6587 GB, free: 6.738 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006379/0.5364, allocations: 1.272 MB / 0.66 GB, free: 5.457 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03384/0.5703, allocations: 5.664 MB / 0.6655 GB, free: 15.78 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01577/0.5861, allocations: 5.844 MB / 0.6712 GB, free: 9.875 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007971/0.5868, allocations: 0.582 MB / 0.6718 GB, free: 9.293 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003655/0.5905, allocations: 0.7694 MB / 0.6725 GB, free: 8.523 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03589/0.6264, allocations: 12.81 MB / 0.685 GB, free: 11.66 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004647/0.6269, allocations: 15.89 kB / 0.685 GB, free: 11.64 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002994/0.6298, allocations: 324 kB / 0.6854 GB, free: 11.33 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006829/0.6305, allocations: 0.4967 MB / 0.6858 GB, free: 10.83 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4876/1.118, allocations: 12.29 MB / 0.6978 GB, free: 105.8 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06938/1.188, allocations: 41.41 MB / 0.7383 GB, free: 83.12 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01742/1.205, allocations: 9.018 MB / 0.7471 GB, free: 79.16 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004692/1.21, allocations: 2.722 MB / 0.7497 GB, free: 77.75 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003898/1.21, allocations: 120 kB / 0.7499 GB, free: 77.71 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003295/1.213, allocations: 2.591 MB / 0.7524 GB, free: 76.09 MB / 494.1 MB Notification: Performance of pre-optimization done (n=391): time 6.442e-06/1.213, allocations: 0 / 0.7524 GB, free: 76.09 MB / 494.1 MB Notification: Performance of matching and sorting (n=397): time 0.03325/1.247, allocations: 18.29 MB / 0.7703 GB, free: 64.12 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.561e-05/1.247, allocations: 351.5 kB / 0.7706 GB, free: 63.7 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004457/1.251, allocations: 3.537 MB / 0.774 GB, free: 60.21 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005442/1.252, allocations: 89.7 kB / 0.7741 GB, free: 60.11 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001447/1.253, allocations: 3.488 MB / 0.7775 GB, free: 56.77 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001078/1.254, allocations: 1.427 MB / 0.7789 GB, free: 55.37 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0014/1.256, allocations: 1.101 MB / 0.78 GB, free: 54.26 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.036e-05/1.256, allocations: 305.1 kB / 0.7803 GB, free: 53.96 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003103/1.259, allocations: 2.552 MB / 0.7828 GB, free: 51.4 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003889/1.263, allocations: 4.516 MB / 0.7872 GB, free: 46 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007691/1.27, allocations: 7.467 MB / 0.7945 GB, free: 37.66 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.857e-05/1.27, allocations: 23.94 kB / 0.7945 GB, free: 37.64 MB / 494.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01276/1.283, allocations: 8.294 MB / 0.8026 GB, free: 29.32 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.292e-05/1.283, allocations: 53.7 kB / 0.8027 GB, free: 29.26 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.937e-05/1.283, allocations: 60 kB / 0.8027 GB, free: 29.2 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002347/1.286, allocations: 1.001 MB / 0.8037 GB, free: 28.2 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004106/1.29, allocations: 1.267 MB / 0.8049 GB, free: 26.93 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01046/1.3, allocations: 8.723 MB / 0.8134 GB, free: 18.1 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004252/1.304, allocations: 359.4 kB / 0.8138 GB, free: 17.75 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007523/1.305, allocations: 264 kB / 0.814 GB, free: 17.49 MB / 494.1 MB 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.004309/1.309, allocations: 2.899 MB / 0.8169 GB, free: 14.57 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008738/1.31, allocations: 409.4 kB / 0.8173 GB, free: 14.17 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008952/1.319, allocations: 6.152 MB / 0.8233 GB, free: 7.969 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.312e-05/1.319, allocations: 44.19 kB / 0.8233 GB, free: 7.926 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.626e-05/1.319, allocations: 8 kB / 0.8233 GB, free: 7.918 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.066e-05/1.319, allocations: 27.86 kB / 0.8233 GB, free: 7.891 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02656/1.346, allocations: 14.65 MB / 0.8377 GB, free: 9.18 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.982e-05/1.346, allocations: 4 kB / 0.8377 GB, free: 9.176 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003159/1.349, allocations: 0.6904 MB / 0.8383 GB, free: 8.484 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002689/1.352, allocations: 0.8757 MB / 0.8392 GB, free: 7.605 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000536/1.352, allocations: 91.91 kB / 0.8393 GB, free: 7.516 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01259/1.365, allocations: 7.645 MB / 0.8467 GB, free: 15.75 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.418e-06/1.365, allocations: 8.031 kB / 0.8467 GB, free: 15.75 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01716/1.382, allocations: 8.797 MB / 0.8553 GB, free: 6.82 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003426/1.386, allocations: 0.8565 MB / 0.8562 GB, free: 5.961 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001215/1.387, allocations: 75.98 kB / 0.8562 GB, free: 5.887 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002494/1.389, allocations: 199.8 kB / 0.8564 GB, free: 5.691 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007236/1.39, allocations: 291 kB / 0.8567 GB, free: 5.406 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002669/1.39, allocations: 120 kB / 0.8568 GB, free: 5.289 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.004787/1.395, allocations: 2.371 MB / 0.8591 GB, free: 2.926 MB / 0.5138 GB Notification: Performance of sort global known variables: time 2.5e-07/1.395, allocations: 0 / 0.8591 GB, free: 2.926 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.007043/1.402, allocations: 1.457 MB / 0.8606 GB, free: 1.469 MB / 0.5138 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.0167/1.419, allocations: 9.495 MB / 0.8698 GB, free: 7.848 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01284/1.432, allocations: 6.232 MB / 0.8759 GB, free: 1.594 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.17e-05/1.432, allocations: 0 / 0.8759 GB, free: 1.594 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.006705/1.438, allocations: 2.883 MB / 0.8787 GB, free: 14.68 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005354/1.444, allocations: 0.8204 MB / 0.8795 GB, free: 13.88 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3183/1.762, allocations: 48.23 MB / 0.9266 GB, free: 168.1 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006382/1.768, allocations: 5.009 MB / 0.9315 GB, free: 166.2 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.004593/1.773, allocations: 1.591 MB / 0.9331 GB, free: 166.1 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003779/1.777, allocations: 2.775 MB / 0.9358 GB, free: 163.8 MB / 0.5607 GB Notification: Performance of SimCode: time 1.122e-06/1.777, allocations: 0 / 0.9358 GB, free: 163.8 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1719/1.949, allocations: 118 MB / 1.051 GB, free: 64.81 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.65/23.6, allocations: 7.25 kB / 1.051 GB, free: 64.8 MB / 0.5607 GB " [Timeout remaining time 636] (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: 27.046070914017037] Failed to read output from testmodel.py, exit status != 0: 23.787194456206635 23.807117561 23.313178458 Calling exit ...