Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.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.002079/0.002079, allocations: 114.3 kB / 18.94 MB, free: 2.957 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.472/1.472, allocations: 230.6 MB / 252.6 MB, free: 8.348 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.001701/0.001701, allocations: 225 kB / 309.2 MB, free: 3.172 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.04171/0.04171, allocations: 8.912 MB / 374.6 MB, free: 1.93 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_VCurve3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_VCurve3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve3",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.002506/0.002506, allocations: 83.88 kB / 0.4893 GB, free: 7.332 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2972/0.2998, allocations: 55.6 MB / 0.5436 GB, free: 26.82 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve3): time 0.01896/0.3187, allocations: 25.66 MB / 0.5686 GB, free: 8.352 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01618/0.3349, allocations: 8.086 MB / 0.5765 GB, free: 2.527 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005369/0.3403, allocations: 203.9 kB / 0.5767 GB, free: 2.465 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01857/0.3588, allocations: 7.758 MB / 0.5843 GB, free: 13.86 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01274/0.3716, allocations: 3.181 MB / 0.5874 GB, free: 11.59 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007411/0.379, allocations: 2.088 MB / 0.5894 GB, free: 9.938 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01709/0.3961, allocations: 9.411 MB / 0.5986 GB, free: 4.168 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02418/0.4203, allocations: 11.36 MB / 0.6097 GB, free: 9.184 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00938/0.4296, allocations: 4.874 MB / 0.6145 GB, free: 4.297 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009744/0.4394, allocations: 5.373 MB / 0.6197 GB, free: 14.91 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003718/0.4431, allocations: 1.359 MB / 0.621 GB, free: 13.55 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00714/0.4502, allocations: 1.738 MB / 0.6227 GB, free: 11.81 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005291/0.4555, allocations: 2.685 MB / 0.6254 GB, free: 9.117 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01192/0.4675, allocations: 5.09 MB / 0.6303 GB, free: 4.008 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02636/0.4938, allocations: 18.22 MB / 0.6481 GB, free: 1.73 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.4938, allocations: 0 / 0.6481 GB, free: 1.73 MB / 446.1 MB Notification: Performance of FrontEnd: time 4.138e-06/0.4938, allocations: 7.984 kB / 0.6481 GB, free: 1.723 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005016/0.4943, 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.03693/0.5313, allocations: 10.89 MB / 0.6588 GB, free: 6.742 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.981e-05/0.5313, allocations: 12.03 kB / 0.6588 GB, free: 6.73 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004952/0.5363, allocations: 1.272 MB / 0.66 GB, free: 5.449 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03314/0.5694, allocations: 5.668 MB / 0.6655 GB, free: 15.77 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01526/0.5847, allocations: 5.844 MB / 0.6713 GB, free: 9.863 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007564/0.5854, allocations: 0.578 MB / 0.6718 GB, free: 9.285 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003971/0.5894, allocations: 0.7655 MB / 0.6726 GB, free: 8.52 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04021/0.6296, allocations: 12.81 MB / 0.6851 GB, free: 11.66 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000474/0.6301, allocations: 15.94 kB / 0.6851 GB, free: 11.64 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00341/0.6335, allocations: 324 kB / 0.6854 GB, free: 11.32 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007327/0.6342, allocations: 0.4967 MB / 0.6859 GB, free: 10.82 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.5342/1.168, allocations: 12.29 MB / 0.6979 GB, free: 105.9 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07537/1.244, allocations: 41.42 MB / 0.7383 GB, free: 83.11 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01985/1.264, allocations: 9.009 MB / 0.7471 GB, free: 79.16 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005565/1.269, allocations: 2.718 MB / 0.7498 GB, free: 77.74 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005424/1.27, allocations: 121.4 kB / 0.7499 GB, free: 77.7 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004277/1.274, allocations: 2.58 MB / 0.7524 GB, free: 76.09 MB / 494.1 MB Notification: Performance of pre-optimization done (n=391): time 1.537e-05/1.274, allocations: 7.922 kB / 0.7524 GB, free: 76.09 MB / 494.1 MB Notification: Performance of matching and sorting (n=397): time 0.04251/1.317, allocations: 18.29 MB / 0.7703 GB, free: 64.1 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001103/1.317, allocations: 355.5 kB / 0.7706 GB, free: 63.68 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006185/1.323, allocations: 3.533 MB / 0.7741 GB, free: 60.18 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009288/1.324, allocations: 85.7 kB / 0.7742 GB, free: 60.09 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002159/1.326, allocations: 3.504 MB / 0.7776 GB, free: 56.75 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001504/1.327, allocations: 1.423 MB / 0.779 GB, free: 55.34 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002777/1.33, allocations: 1.097 MB / 0.78 GB, free: 54.24 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001033/1.33, allocations: 305.1 kB / 0.7803 GB, free: 53.94 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003706/1.334, allocations: 2.552 MB / 0.7828 GB, free: 51.38 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004249/1.338, allocations: 4.52 MB / 0.7872 GB, free: 45.98 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007923/1.346, allocations: 7.471 MB / 0.7945 GB, free: 37.63 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.775e-05/1.346, allocations: 16 kB / 0.7946 GB, free: 37.62 MB / 494.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01526/1.361, allocations: 8.29 MB / 0.8027 GB, free: 29.3 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.767e-05/1.362, allocations: 66.02 kB / 0.8027 GB, free: 29.23 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001011/1.362, allocations: 60 kB / 0.8028 GB, free: 29.18 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002624/1.364, allocations: 0.9925 MB / 0.8037 GB, free: 28.18 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004414/1.369, allocations: 1.271 MB / 0.805 GB, free: 26.91 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01112/1.38, allocations: 8.715 MB / 0.8135 GB, free: 18.09 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004729/1.385, allocations: 355.5 kB / 0.8138 GB, free: 17.74 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001027/1.386, allocations: 276.1 kB / 0.8141 GB, free: 17.47 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.005272/1.391, allocations: 2.891 MB / 0.8169 GB, free: 14.56 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001271/1.392, allocations: 421.2 kB / 0.8173 GB, free: 14.14 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01037/1.402, allocations: 6.144 MB / 0.8233 GB, free: 7.949 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.43e-05/1.403, allocations: 44 kB / 0.8234 GB, free: 7.906 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.379e-05/1.403, allocations: 12 kB / 0.8234 GB, free: 7.895 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.494e-05/1.403, allocations: 19.92 kB / 0.8234 GB, free: 7.875 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02877/1.431, allocations: 14.64 MB / 0.8377 GB, free: 9.168 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.96e-05/1.431, allocations: 8.031 kB / 0.8377 GB, free: 9.16 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003159/1.435, allocations: 0.6904 MB / 0.8384 GB, free: 8.469 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002814/1.437, allocations: 0.8755 MB / 0.8392 GB, free: 7.59 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006113/1.438, allocations: 95.91 kB / 0.8393 GB, free: 7.496 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01254/1.451, allocations: 7.641 MB / 0.8468 GB, free: 15.74 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-05/1.451, allocations: 12.03 kB / 0.8468 GB, free: 15.73 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01596/1.466, allocations: 8.801 MB / 0.8554 GB, free: 6.797 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003098/1.47, allocations: 0.8564 MB / 0.8562 GB, free: 5.938 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00103/1.471, allocations: 75.98 kB / 0.8563 GB, free: 5.863 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002584/1.473, allocations: 191.8 kB / 0.8565 GB, free: 5.676 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006409/1.474, allocations: 295 kB / 0.8568 GB, free: 5.387 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002487/1.474, allocations: 120 kB / 0.8569 GB, free: 5.27 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.004646/1.479, allocations: 2.371 MB / 0.8592 GB, free: 2.906 MB / 0.5138 GB Notification: Performance of sort global known variables: time 2.2e-07/1.479, allocations: 0 / 0.8592 GB, free: 2.906 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.006962/1.486, allocations: 1.457 MB / 0.8606 GB, free: 1.449 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.01814/1.504, allocations: 9.494 MB / 0.8699 GB, free: 7.828 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01428/1.518, allocations: 6.231 MB / 0.876 GB, free: 1.574 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.271e-05/1.518, allocations: 0 / 0.876 GB, free: 1.574 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.006264/1.524, allocations: 2.891 MB / 0.8788 GB, free: 14.66 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004641/1.529, allocations: 0.8211 MB / 0.8796 GB, free: 13.86 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3556/1.885, allocations: 48.24 MB / 0.9267 GB, free: 167.8 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006757/1.891, allocations: 5.009 MB / 0.9316 GB, free: 165.9 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.00516/1.896, allocations: 1.591 MB / 0.9332 GB, free: 165.8 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004381/1.901, allocations: 2.774 MB / 0.9359 GB, free: 163.5 MB / 0.5607 GB Notification: Performance of SimCode: time 1.142e-06/1.901, allocations: 0 / 0.9359 GB, free: 163.5 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1712/2.072, allocations: 118 MB / 1.051 GB, free: 64.41 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 23/25.07, allocations: 4.062 kB / 1.051 GB, free: 64.41 MB / 0.5607 GB " [Timeout remaining time 635] (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3_res.csv --start-time 0 --stop-time 200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve3.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 28.13120761299797] Failed to read output from testmodel.py, exit status != 0: 25.28469169500022 25.294594693 24.798276899 Calling exit ...