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.001378/0.001378, allocations: 110.6 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.491/1.491, allocations: 230.6 MB / 252.6 MB, free: 8.293 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.001655/0.001655, allocations: 216.8 kB / 309.2 MB, free: 3.145 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.04441/0.04441, allocations: 8.915 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.002488/0.002488, allocations: 88.25 kB / 0.4892 GB, free: 7.32 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2987/0.3012, allocations: 55.6 MB / 0.5435 GB, free: 26.77 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve1): time 0.01966/0.3208, allocations: 25.65 MB / 0.5686 GB, free: 8.309 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01471/0.3356, allocations: 8.08 MB / 0.5765 GB, free: 2.488 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005103/0.3407, allocations: 206.7 kB / 0.5767 GB, free: 2.426 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01843/0.3591, allocations: 7.756 MB / 0.5842 GB, free: 13.82 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01193/0.371, allocations: 3.174 MB / 0.5873 GB, free: 11.59 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007186/0.3782, allocations: 2.096 MB / 0.5894 GB, free: 9.926 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01575/0.394, allocations: 9.401 MB / 0.5986 GB, free: 4.164 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02107/0.415, allocations: 11.35 MB / 0.6096 GB, free: 9.199 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009564/0.4246, allocations: 4.886 MB / 0.6144 GB, free: 4.301 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01033/0.4349, allocations: 5.373 MB / 0.6197 GB, free: 14.91 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004262/0.4392, allocations: 1.352 MB / 0.621 GB, free: 13.56 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006834/0.446, allocations: 1.746 MB / 0.6227 GB, free: 11.81 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004559/0.4506, allocations: 2.673 MB / 0.6253 GB, free: 9.133 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01025/0.4608, allocations: 5.09 MB / 0.6303 GB, free: 4.023 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03106/0.4919, allocations: 18.24 MB / 0.6481 GB, free: 1.73 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.777e-06/0.4919, allocations: 0 / 0.6481 GB, free: 1.73 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.086e-06/0.4919, allocations: 0 / 0.6481 GB, free: 1.73 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005261/0.4924, allocations: 0 / 0.6481 GB, free: 1.73 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.05193/0.5443, allocations: 10.88 MB / 0.6587 GB, free: 6.758 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.29e-05/0.5444, allocations: 15.97 kB / 0.6587 GB, free: 6.742 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006865/0.5513, allocations: 1.272 MB / 0.66 GB, free: 5.461 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04256/0.5938, allocations: 5.672 MB / 0.6655 GB, free: 15.77 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02327/0.6171, allocations: 5.848 MB / 0.6712 GB, free: 9.867 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000986/0.6181, allocations: 0.578 MB / 0.6718 GB, free: 9.289 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004584/0.6227, allocations: 0.7655 MB / 0.6725 GB, free: 8.523 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03678/0.6595, allocations: 12.81 MB / 0.685 GB, free: 11.66 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004232/0.6599, allocations: 11.94 kB / 0.685 GB, free: 11.64 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002978/0.6629, allocations: 324 kB / 0.6854 GB, free: 11.33 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006809/0.6635, allocations: 0.4928 MB / 0.6858 GB, free: 10.83 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4803/1.144, allocations: 12.3 MB / 0.6978 GB, free: 105.9 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08476/1.229, allocations: 41.41 MB / 0.7383 GB, free: 83.12 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02102/1.25, allocations: 9.02 MB / 0.7471 GB, free: 79.16 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005774/1.255, allocations: 2.719 MB / 0.7497 GB, free: 77.74 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006045/1.256, allocations: 114.4 kB / 0.7498 GB, free: 77.71 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004813/1.261, allocations: 2.589 MB / 0.7524 GB, free: 76.09 MB / 494.1 MB Notification: Performance of pre-optimization done (n=391): time 9.849e-06/1.261, allocations: 3.875 kB / 0.7524 GB, free: 76.09 MB / 494.1 MB Notification: Performance of matching and sorting (n=397): time 0.04519/1.306, allocations: 18.29 MB / 0.7702 GB, free: 64.09 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001178/1.306, allocations: 351.5 kB / 0.7706 GB, free: 63.67 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006856/1.313, allocations: 3.529 MB / 0.774 GB, free: 60.18 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007568/1.314, allocations: 93.7 kB / 0.7741 GB, free: 60.09 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002003/1.316, allocations: 3.5 MB / 0.7775 GB, free: 56.74 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00163/1.317, allocations: 1.427 MB / 0.7789 GB, free: 55.33 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003445/1.321, allocations: 1.097 MB / 0.78 GB, free: 54.23 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 5.382e-05/1.321, allocations: 301.1 kB / 0.7803 GB, free: 53.93 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004142/1.325, allocations: 2.56 MB / 0.7828 GB, free: 51.36 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005485/1.33, allocations: 4.508 MB / 0.7872 GB, free: 45.97 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008946/1.339, allocations: 7.471 MB / 0.7945 GB, free: 37.63 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.422e-05/1.339, allocations: 23.94 kB / 0.7945 GB, free: 37.61 MB / 494.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01367/1.353, allocations: 8.29 MB / 0.8026 GB, free: 29.29 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.646e-05/1.353, allocations: 57.7 kB / 0.8027 GB, free: 29.23 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001041/1.353, allocations: 60 kB / 0.8027 GB, free: 29.17 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002462/1.356, allocations: 1 MB / 0.8037 GB, free: 28.17 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004609/1.36, allocations: 1.264 MB / 0.8049 GB, free: 26.91 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01178/1.372, allocations: 8.722 MB / 0.8134 GB, free: 18.07 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005004/1.377, allocations: 351.5 kB / 0.8138 GB, free: 17.73 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001259/1.378, allocations: 271.9 kB / 0.814 GB, free: 17.46 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.00658/1.385, allocations: 2.898 MB / 0.8169 GB, free: 14.55 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001543/1.387, allocations: 409.3 kB / 0.8173 GB, free: 14.14 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01159/1.398, allocations: 6.152 MB / 0.8233 GB, free: 7.941 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.175e-05/1.398, allocations: 44 kB / 0.8233 GB, free: 7.898 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.512e-05/1.398, allocations: 12 kB / 0.8233 GB, free: 7.887 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-05/1.398, allocations: 19.92 kB / 0.8233 GB, free: 7.867 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02956/1.428, allocations: 14.65 MB / 0.8376 GB, free: 9.148 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.64e-05/1.428, allocations: 4 kB / 0.8377 GB, free: 9.145 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002905/1.431, allocations: 0.6826 MB / 0.8383 GB, free: 8.461 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002691/1.433, allocations: 0.8796 MB / 0.8392 GB, free: 7.578 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004079/1.434, allocations: 91.91 kB / 0.8393 GB, free: 7.488 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01233/1.446, allocations: 7.644 MB / 0.8467 GB, free: 15.73 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.364e-05/1.446, allocations: 12.2 kB / 0.8467 GB, free: 15.71 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01589/1.462, allocations: 8.796 MB / 0.8553 GB, free: 6.793 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003225/1.465, allocations: 0.8642 MB / 0.8562 GB, free: 5.926 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001159/1.466, allocations: 76 kB / 0.8562 GB, free: 5.852 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002638/1.469, allocations: 191.8 kB / 0.8564 GB, free: 5.664 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000649/1.47, allocations: 291 kB / 0.8567 GB, free: 5.379 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000257/1.47, allocations: 116 kB / 0.8568 GB, free: 5.266 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.004769/1.475, allocations: 2.371 MB / 0.8591 GB, free: 2.902 MB / 0.5138 GB Notification: Performance of sort global known variables: time 9e-08/1.475, allocations: 0 / 0.8591 GB, free: 2.902 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.00777/1.483, allocations: 1.461 MB / 0.8606 GB, free: 1.441 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.01741/1.5, allocations: 9.494 MB / 0.8698 GB, free: 7.816 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01226/1.512, allocations: 6.224 MB / 0.8759 GB, free: 1.57 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.285e-05/1.512, allocations: 4.438 kB / 0.8759 GB, free: 1.566 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.00586/1.518, allocations: 2.897 MB / 0.8787 GB, free: 14.65 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004485/1.523, allocations: 0.8182 MB / 0.8795 GB, free: 13.85 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3455/1.868, allocations: 48.23 MB / 0.9266 GB, free: 168 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006022/1.874, allocations: 5.004 MB / 0.9315 GB, free: 166.1 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.004932/1.879, allocations: 1.586 MB / 0.9331 GB, free: 166 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00417/1.883, allocations: 2.776 MB / 0.9358 GB, free: 163.7 MB / 0.5607 GB Notification: Performance of SimCode: time 1.373e-06/1.883, allocations: 0 / 0.9358 GB, free: 163.7 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1837/2.067, allocations: 118 MB / 1.051 GB, free: 64.58 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.74/23.8, allocations: 10.8 kB / 1.051 GB, free: 64.57 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 & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1_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_VCurve1.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 26.822378116004984] Failed to read output from testmodel.py, exit status != 0: 23.98066837999795 24.006210124 23.509829152 Calling exit ...