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.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.001381/0.001381, allocations: 113 kB / 18.94 MB, free: 2.934 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.45/1.45, allocations: 230.6 MB / 252.6 MB, free: 8.344 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.001626/0.001626, allocations: 219.4 kB / 309.2 MB, free: 3.168 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.04168/0.04168, allocations: 8.922 MB / 374.6 MB, free: 1.922 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_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: 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.002592/0.002592, allocations: 90.09 kB / 0.4893 GB, free: 4.539 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.1166, allocations: 55.61 MB / 0.5436 GB, free: 5.031 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve4): time 0.03035/0.147, allocations: 25.66 MB / 0.5686 GB, free: 11.25 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01764/0.1646, allocations: 8.088 MB / 0.5765 GB, free: 3.137 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005075/0.1697, allocations: 207 kB / 0.5767 GB, free: 2.934 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01893/0.1886, allocations: 7.753 MB / 0.5843 GB, free: 11.16 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01031/0.1989, allocations: 3.17 MB / 0.5874 GB, free: 7.977 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007306/0.2062, allocations: 2.099 MB / 0.5894 GB, free: 5.879 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01583/0.2221, allocations: 9.406 MB / 0.5986 GB, free: 12.45 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02063/0.2427, allocations: 11.35 MB / 0.6097 GB, free: 0.9531 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008874/0.2516, allocations: 4.882 MB / 0.6145 GB, free: 12.06 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01058/0.2622, allocations: 5.361 MB / 0.6197 GB, free: 6.68 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004392/0.2666, allocations: 1.355 MB / 0.621 GB, free: 5.324 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006623/0.2732, allocations: 1.746 MB / 0.6227 GB, free: 3.578 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00551/0.2787, allocations: 2.681 MB / 0.6254 GB, free: 0.8906 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01137/0.2901, allocations: 5.082 MB / 0.6303 GB, free: 11.79 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02829/0.3183, allocations: 18.23 MB / 0.6481 GB, free: 9.5 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.3184, allocations: 0 / 0.6481 GB, free: 9.5 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.425e-06/0.3184, allocations: 0 / 0.6481 GB, free: 9.5 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0005456/0.3189, allocations: 0 / 0.6481 GB, free: 9.5 MB / 462.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.5206/0.8395, allocations: 10.88 MB / 0.6587 GB, free: 89.6 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.483e-05/0.8396, allocations: 10.83 kB / 0.6588 GB, free: 89.6 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005499/0.8451, allocations: 1.268 MB / 0.66 GB, free: 89.06 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03446/0.8795, allocations: 5.67 MB / 0.6655 GB, free: 88.2 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01636/0.8959, allocations: 5.853 MB / 0.6712 GB, free: 85.23 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001509/0.8974, allocations: 0.5846 MB / 0.6718 GB, free: 84.96 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004691/0.9021, allocations: 0.766 MB / 0.6726 GB, free: 84.71 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03276/0.9348, allocations: 12.8 MB / 0.6851 GB, free: 77.21 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000455/0.9353, allocations: 19.73 kB / 0.6851 GB, free: 77.2 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002578/0.9379, allocations: 327.4 kB / 0.6854 GB, free: 76.96 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004949/0.9384, allocations: 0.4997 MB / 0.6859 GB, free: 76.46 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02415/0.9625, allocations: 12.28 MB / 0.6979 GB, free: 64.15 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07164/1.034, allocations: 41.42 MB / 0.7383 GB, free: 22.44 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01665/1.051, allocations: 9.009 MB / 0.7471 GB, free: 14.43 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004926/1.056, allocations: 2.725 MB / 0.7498 GB, free: 11.7 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005829/1.056, allocations: 114.1 kB / 0.7499 GB, free: 11.61 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004706/1.061, allocations: 2.598 MB / 0.7524 GB, free: 8.945 MB / 462.1 MB Notification: Performance of pre-optimization done (n=391): time 9.187e-06/1.061, allocations: 0 / 0.7524 GB, free: 8.945 MB / 462.1 MB Notification: Performance of matching and sorting (n=397): time 0.04854/1.11, allocations: 18.28 MB / 0.7703 GB, free: 6.695 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002284/1.11, allocations: 363.5 kB / 0.7706 GB, free: 6.266 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007209/1.117, allocations: 3.531 MB / 0.7741 GB, free: 2.73 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006952/1.118, allocations: 89.7 kB / 0.7742 GB, free: 2.637 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003065/1.121, allocations: 3.498 MB / 0.7776 GB, free: 15.13 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002031/1.123, allocations: 1.423 MB / 0.779 GB, free: 13.73 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002993/1.126, allocations: 1.101 MB / 0.7801 GB, free: 12.62 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001382/1.126, allocations: 301.1 kB / 0.7803 GB, free: 12.32 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004285/1.13, allocations: 2.556 MB / 0.7828 GB, free: 9.758 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005973/1.136, allocations: 4.516 MB / 0.7872 GB, free: 4.359 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01137/1.148, allocations: 7.471 MB / 0.7945 GB, free: 12.02 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.05e-05/1.148, allocations: 16 kB / 0.7946 GB, free: 12 MB / 0.4982 GB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01646/1.164, allocations: 8.286 MB / 0.8026 GB, free: 3.691 MB / 0.4982 GB Notification: Performance of prepare postOptimizeDAE: time 9.249e-05/1.164, allocations: 61.69 kB / 0.8027 GB, free: 3.625 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001237/1.164, allocations: 60 kB / 0.8028 GB, free: 3.566 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002957/1.167, allocations: 1 MB / 0.8037 GB, free: 2.57 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005277/1.173, allocations: 1.264 MB / 0.805 GB, free: 1.305 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01434/1.187, allocations: 8.715 MB / 0.8135 GB, free: 8.484 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005107/1.192, allocations: 355.5 kB / 0.8138 GB, free: 8.137 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001092/1.193, allocations: 275.9 kB / 0.8141 GB, free: 7.867 MB / 0.5138 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.006259/1.199, allocations: 2.898 MB / 0.8169 GB, free: 4.949 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001189/1.201, allocations: 413.4 kB / 0.8173 GB, free: 4.543 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0117/1.212, allocations: 6.148 MB / 0.8233 GB, free: 14.34 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.289e-05/1.212, allocations: 40 kB / 0.8234 GB, free: 14.3 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.716e-05/1.212, allocations: 12 kB / 0.8234 GB, free: 14.29 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-05/1.212, allocations: 23.92 kB / 0.8234 GB, free: 14.27 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03017/1.243, allocations: 14.65 MB / 0.8377 GB, free: 15.44 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.759e-05/1.243, allocations: 4.594 kB / 0.8377 GB, free: 15.44 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003356/1.246, allocations: 0.6943 MB / 0.8384 GB, free: 14.74 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002701/1.249, allocations: 0.8756 MB / 0.8392 GB, free: 13.86 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006065/1.249, allocations: 91.97 kB / 0.8393 GB, free: 13.77 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01284/1.262, allocations: 7.641 MB / 0.8468 GB, free: 6.012 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.121e-05/1.262, allocations: 8 kB / 0.8468 GB, free: 6.004 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01672/1.279, allocations: 8.793 MB / 0.8554 GB, free: 13.08 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003123/1.282, allocations: 0.8642 MB / 0.8562 GB, free: 12.21 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009731/1.283, allocations: 80 kB / 0.8563 GB, free: 12.14 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002366/1.285, allocations: 191.7 kB / 0.8565 GB, free: 11.95 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000644/1.286, allocations: 298.9 kB / 0.8568 GB, free: 11.66 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002483/1.286, allocations: 116 kB / 0.8569 GB, free: 11.54 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.004408/1.291, allocations: 2.367 MB / 0.8592 GB, free: 9.184 MB / 0.5607 GB Notification: Performance of sort global known variables: time 1.1e-07/1.291, allocations: 0 / 0.8592 GB, free: 9.184 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.006307/1.297, allocations: 1.453 MB / 0.8606 GB, free: 7.73 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.0156/1.312, allocations: 9.498 MB / 0.8699 GB, free: 14.09 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01182/1.324, allocations: 6.221 MB / 0.876 GB, free: 7.848 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.051e-05/1.324, allocations: 0 / 0.876 GB, free: 7.848 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.005705/1.33, allocations: 2.896 MB / 0.8788 GB, free: 4.926 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004077/1.334, allocations: 0.8202 MB / 0.8796 GB, free: 4.125 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3448/1.679, allocations: 48.24 MB / 0.9267 GB, free: 183.5 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00501/1.684, allocations: 5.008 MB / 0.9316 GB, free: 178.5 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.003964/1.688, allocations: 1.594 MB / 0.9331 GB, free: 176.9 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003952/1.692, allocations: 2.772 MB / 0.9359 GB, free: 174.1 MB / 0.5763 GB Notification: Performance of SimCode: time 1.322e-06/1.692, allocations: 2.531 kB / 0.9359 GB, free: 174.1 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1712/1.863, allocations: 118 MB / 1.051 GB, free: 56.73 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.82/24.68, allocations: 3.438 kB / 1.051 GB, free: 56.73 MB / 0.5763 GB " [Timeout remaining time 635] (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 & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4_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_VCurve4.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 27.71966129700013] Failed to read output from testmodel.py, exit status != 0: 24.85406569899351 24.864874245 24.543800104 Calling exit ...