Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.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.001348/0.001348, allocations: 105.4 kB / 16.45 MB, free: 6.508 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.524/1.524, allocations: 230.6 MB / 249.8 MB, free: 9.246 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.001631/0.001631, allocations: 216.3 kB / 306 MB, free: 4.312 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.04227/0.04227, allocations: 8.916 MB / 371 MB, free: 3.453 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_VCurve2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_VCurve2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve2",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.002586/0.002586, allocations: 76.31 kB / 495.8 MB, free: 9.828 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3148/0.3174, allocations: 55.58 MB / 0.5384 GB, free: 26.64 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve2): time 0.02087/0.3382, allocations: 25.59 MB / 0.5634 GB, free: 8.184 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01893/0.3572, allocations: 8.066 MB / 0.5713 GB, free: 2.367 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007906/0.3651, allocations: 202.2 kB / 0.5715 GB, free: 2.309 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02415/0.3892, allocations: 7.73 MB / 0.579 GB, free: 13.72 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01435/0.4036, allocations: 3.102 MB / 0.5821 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007663/0.4112, allocations: 2.052 MB / 0.5841 GB, free: 10.31 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01567/0.4269, allocations: 9.313 MB / 0.5932 GB, free: 4.621 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02795/0.4548, allocations: 12.82 MB / 0.6057 GB, free: 9.059 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01024/0.4651, allocations: 4.855 MB / 0.6104 GB, free: 4.191 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01065/0.4757, allocations: 5.346 MB / 0.6156 GB, free: 14.83 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004675/0.4804, allocations: 1.352 MB / 0.617 GB, free: 13.48 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006741/0.4872, allocations: 1.738 MB / 0.6187 GB, free: 11.74 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005812/0.493, allocations: 2.677 MB / 0.6213 GB, free: 9.055 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01091/0.5039, allocations: 5.094 MB / 0.6263 GB, free: 3.941 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02799/0.5319, allocations: 18.23 MB / 0.6441 GB, free: 1.656 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.08e-05/0.5319, allocations: 4 kB / 0.6441 GB, free: 1.652 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.5319, allocations: 0 / 0.6441 GB, free: 1.652 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005264/0.5324, allocations: 0 / 0.6441 GB, free: 1.652 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.036/0.5684, allocations: 10.96 MB / 0.6548 GB, free: 6.586 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.156e-05/0.5685, allocations: 12.03 kB / 0.6548 GB, free: 6.574 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005258/0.5737, allocations: 1.268 MB / 0.656 GB, free: 5.297 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03484/0.6086, allocations: 5.668 MB / 0.6615 GB, free: 15.62 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01438/0.6229, allocations: 5.834 MB / 0.6672 GB, free: 9.727 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008161/0.6237, allocations: 0.5819 MB / 0.6678 GB, free: 9.145 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003972/0.6277, allocations: 0.7655 MB / 0.6686 GB, free: 8.379 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03899/0.6667, allocations: 12.8 MB / 0.6811 GB, free: 11.52 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004819/0.6672, allocations: 15.89 kB / 0.6811 GB, free: 11.51 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003427/0.6706, allocations: 324 kB / 0.6814 GB, free: 11.19 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007258/0.6713, allocations: 0.4967 MB / 0.6819 GB, free: 10.69 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.5156/1.187, allocations: 12.29 MB / 0.6939 GB, free: 105.8 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07769/1.265, allocations: 45.16 MB / 0.738 GB, free: 78.62 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02228/1.287, allocations: 24.83 MB / 0.7622 GB, free: 54.94 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005469/1.292, allocations: 2.723 MB / 0.7649 GB, free: 53.51 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006359/1.293, allocations: 350.1 kB / 0.7652 GB, free: 53.2 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004647/1.298, allocations: 2.584 MB / 0.7677 GB, free: 51.58 MB / 494.1 MB Notification: Performance of pre-optimization done (n=391): time 1.011e-05/1.298, allocations: 0 / 0.7677 GB, free: 51.58 MB / 494.1 MB Notification: Performance of matching and sorting (n=397): time 0.04218/1.34, allocations: 18.44 MB / 0.7857 GB, free: 40.01 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001096/1.34, allocations: 359.5 kB / 0.7861 GB, free: 39.58 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006533/1.346, allocations: 3.529 MB / 0.7895 GB, free: 36.09 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001116/1.348, allocations: 89.7 kB / 0.7896 GB, free: 36 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002592/1.35, allocations: 3.498 MB / 0.793 GB, free: 32.66 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001965/1.352, allocations: 1.419 MB / 0.7944 GB, free: 31.26 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001931/1.354, allocations: 1.101 MB / 0.7955 GB, free: 30.15 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 6.758e-05/1.354, allocations: 301.1 kB / 0.7958 GB, free: 29.85 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00374/1.358, allocations: 2.564 MB / 0.7983 GB, free: 27.28 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005039/1.363, allocations: 4.519 MB / 0.8027 GB, free: 21.88 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009293/1.372, allocations: 7.467 MB / 0.81 GB, free: 13.54 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.133e-05/1.372, allocations: 19.94 kB / 0.81 GB, free: 13.52 MB / 494.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01519/1.388, allocations: 8.29 MB / 0.8181 GB, free: 5.211 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.637e-05/1.388, allocations: 57.7 kB / 0.8182 GB, free: 5.148 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001053/1.388, allocations: 63.98 kB / 0.8182 GB, free: 5.086 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002767/1.39, allocations: 1.002 MB / 0.8192 GB, free: 4.082 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0048/1.395, allocations: 1.26 MB / 0.8204 GB, free: 2.82 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01405/1.409, allocations: 8.823 MB / 0.829 GB, free: 9.859 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005589/1.415, allocations: 355.4 kB / 0.8294 GB, free: 9.512 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001322/1.416, allocations: 271.9 kB / 0.8296 GB, free: 9.246 MB / 0.4982 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.007184/1.423, allocations: 2.899 MB / 0.8325 GB, free: 6.328 MB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001417/1.425, allocations: 413.3 kB / 0.8329 GB, free: 5.922 MB / 0.4982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0155/1.44, allocations: 6.148 MB / 0.8389 GB, free: 15.72 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.234e-05/1.44, allocations: 44 kB / 0.8389 GB, free: 15.68 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.348e-05/1.44, allocations: 11.98 kB / 0.8389 GB, free: 15.67 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001052/1.44, allocations: 23.92 kB / 0.839 GB, free: 15.64 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03171/1.472, allocations: 14.64 MB / 0.8532 GB, free: 0.9375 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.491e-05/1.472, allocations: 4 kB / 0.8532 GB, free: 0.9336 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003327/1.476, allocations: 0.691 MB / 0.8539 GB, free: 248 kB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003142/1.479, allocations: 0.8729 MB / 0.8548 GB, free: 15.37 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008004/1.479, allocations: 91.91 kB / 0.8549 GB, free: 15.28 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01301/1.493, allocations: 7.762 MB / 0.8624 GB, free: 7.379 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.464e-05/1.493, allocations: 12.03 kB / 0.8625 GB, free: 7.367 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01883/1.511, allocations: 8.793 MB / 0.871 GB, free: 14.45 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003283/1.515, allocations: 0.9204 MB / 0.8719 GB, free: 13.51 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00147/1.516, allocations: 80 kB / 0.872 GB, free: 13.43 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003332/1.519, allocations: 187.8 kB / 0.8722 GB, free: 13.25 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001089/1.521, allocations: 279.1 kB / 0.8725 GB, free: 12.97 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004312/1.521, allocations: 119.9 kB / 0.8726 GB, free: 12.86 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005671/1.527, allocations: 2.371 MB / 0.8749 GB, free: 10.49 MB / 0.545 GB Notification: Performance of sort global known variables: time 4.91e-07/1.527, allocations: 0 / 0.8749 GB, free: 10.49 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008135/1.535, allocations: 1.457 MB / 0.8763 GB, free: 9.035 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.0201/1.555, allocations: 9.513 MB / 0.8856 GB, free: 15.39 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.01414/1.569, allocations: 6.22 MB / 0.8917 GB, free: 9.148 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 1.282e-05/1.569, allocations: 0 / 0.8917 GB, free: 9.148 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.006669/1.576, allocations: 2.884 MB / 0.8945 GB, free: 6.238 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005463/1.581, allocations: 0.8264 MB / 0.8953 GB, free: 5.434 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3327/1.914, allocations: 48.13 MB / 0.9423 GB, free: 181.9 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009835/1.924, allocations: 5.013 MB / 0.9472 GB, free: 180 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.004909/1.929, allocations: 1.59 MB / 0.9488 GB, free: 179.9 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004188/1.933, allocations: 2.779 MB / 0.9515 GB, free: 177.6 MB / 0.5763 GB Notification: Performance of SimCode: time 2.265e-06/1.933, allocations: 0 / 0.9515 GB, free: 177.6 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2049/2.138, allocations: 113.1 MB / 1.062 GB, free: 78.71 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.83/21.97, allocations: 10.86 kB / 1.062 GB, free: 78.7 MB / 0.5763 GB " [Timeout remaining time 638] (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2_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_VCurve2.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 25.035846742990543] Failed to read output from testmodel.py, exit status != 0: 22.147608604005654 22.162960887 21.627261961 Calling exit ...