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.001682/0.001682, 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.526/1.526, allocations: 230.6 MB / 252.6 MB, free: 8.297 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.00169/0.00169, allocations: 215 kB / 309.2 MB, free: 3.199 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.07251/0.07251, allocations: 8.918 MB / 374.6 MB, free: 1.945 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.002511/0.002511, allocations: 87.88 kB / 0.4893 GB, free: 7.324 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2991/0.3016, allocations: 55.6 MB / 0.5436 GB, free: 26.79 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve2): time 0.02052/0.3221, allocations: 25.67 MB / 0.5686 GB, free: 8.312 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01599/0.3381, allocations: 8.078 MB / 0.5765 GB, free: 2.492 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006258/0.3443, allocations: 204.7 kB / 0.5767 GB, free: 2.43 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01887/0.3632, allocations: 7.752 MB / 0.5843 GB, free: 13.83 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01175/0.375, allocations: 3.18 MB / 0.5874 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006612/0.3816, allocations: 2.084 MB / 0.5894 GB, free: 9.922 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0156/0.3972, allocations: 9.415 MB / 0.5986 GB, free: 4.152 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0217/0.4189, allocations: 11.35 MB / 0.6097 GB, free: 9.16 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009972/0.4289, allocations: 4.878 MB / 0.6145 GB, free: 4.27 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01051/0.4394, allocations: 5.377 MB / 0.6197 GB, free: 14.88 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003976/0.4433, allocations: 1.352 MB / 0.621 GB, free: 13.52 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006419/0.4498, allocations: 1.746 MB / 0.6227 GB, free: 11.78 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004805/0.4546, allocations: 2.677 MB / 0.6254 GB, free: 9.094 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01337/0.4679, allocations: 5.097 MB / 0.6303 GB, free: 3.977 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02999/0.4979, allocations: 18.22 MB / 0.6481 GB, free: 1.699 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.157e-06/0.4979, allocations: 3.984 kB / 0.6481 GB, free: 1.695 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.4979, allocations: 0 / 0.6481 GB, free: 1.695 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005611/0.4985, allocations: 4 kB / 0.6481 GB, free: 1.691 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.04788/0.5464, allocations: 10.88 MB / 0.6588 GB, free: 6.719 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.444e-05/0.5464, allocations: 11.97 kB / 0.6588 GB, free: 6.707 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006239/0.5527, allocations: 1.268 MB / 0.66 GB, free: 5.43 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03638/0.589, allocations: 5.668 MB / 0.6655 GB, free: 15.75 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01567/0.6047, allocations: 5.852 MB / 0.6713 GB, free: 9.836 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006998/0.6054, allocations: 0.578 MB / 0.6718 GB, free: 9.258 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003591/0.609, allocations: 0.7654 MB / 0.6726 GB, free: 8.492 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03197/0.641, allocations: 12.8 MB / 0.6851 GB, free: 11.63 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002821/0.6412, allocations: 23.88 kB / 0.6851 GB, free: 11.61 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002304/0.6436, allocations: 320 kB / 0.6854 GB, free: 11.3 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006199/0.6442, allocations: 0.4967 MB / 0.6859 GB, free: 10.8 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.5357/1.18, allocations: 12.29 MB / 0.6979 GB, free: 105.9 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07571/1.256, allocations: 41.42 MB / 0.7383 GB, free: 83.09 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01954/1.275, allocations: 9.01 MB / 0.7471 GB, free: 79.14 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004547/1.28, allocations: 2.723 MB / 0.7498 GB, free: 77.72 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000352/1.28, allocations: 124.4 kB / 0.7499 GB, free: 77.68 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003143/1.283, allocations: 2.584 MB / 0.7524 GB, free: 76.06 MB / 494.1 MB Notification: Performance of pre-optimization done (n=391): time 6.312e-06/1.283, allocations: 7.922 kB / 0.7524 GB, free: 76.05 MB / 494.1 MB Notification: Performance of matching and sorting (n=397): time 0.03357/1.317, allocations: 18.3 MB / 0.7703 GB, free: 64.03 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001154/1.317, allocations: 351.5 kB / 0.7706 GB, free: 63.61 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004498/1.321, allocations: 3.529 MB / 0.7741 GB, free: 60.12 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005559/1.322, allocations: 93.7 kB / 0.7742 GB, free: 60.03 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00145/1.323, allocations: 3.492 MB / 0.7776 GB, free: 56.69 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001081/1.324, allocations: 1.427 MB / 0.779 GB, free: 55.28 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001326/1.326, allocations: 1.097 MB / 0.7801 GB, free: 54.18 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 5.701e-05/1.326, allocations: 305.1 kB / 0.7803 GB, free: 53.88 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003053/1.329, allocations: 2.556 MB / 0.7828 GB, free: 51.31 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003849/1.333, allocations: 4.512 MB / 0.7873 GB, free: 45.92 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007724/1.34, allocations: 7.471 MB / 0.7945 GB, free: 37.57 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.124e-05/1.34, allocations: 19.94 kB / 0.7946 GB, free: 37.55 MB / 494.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01238/1.353, allocations: 8.293 MB / 0.8027 GB, free: 29.24 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.563e-05/1.353, allocations: 57.7 kB / 0.8027 GB, free: 29.18 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001097/1.353, allocations: 64.31 kB / 0.8028 GB, free: 29.11 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002387/1.355, allocations: 0.9926 MB / 0.8037 GB, free: 28.12 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00432/1.36, allocations: 1.267 MB / 0.805 GB, free: 26.85 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01113/1.371, allocations: 8.719 MB / 0.8135 GB, free: 18.02 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004486/1.375, allocations: 355.5 kB / 0.8138 GB, free: 17.68 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007182/1.376, allocations: 271.9 kB / 0.8141 GB, free: 17.41 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.004304/1.38, allocations: 2.895 MB / 0.8169 GB, free: 14.5 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009264/1.381, allocations: 413.3 kB / 0.8173 GB, free: 14.09 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008762/1.39, allocations: 6.148 MB / 0.8233 GB, free: 7.891 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.634e-05/1.39, allocations: 40 kB / 0.8234 GB, free: 7.852 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.459e-05/1.39, allocations: 20 kB / 0.8234 GB, free: 7.832 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.795e-05/1.39, allocations: 19.92 kB / 0.8234 GB, free: 7.812 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02411/1.414, allocations: 14.64 MB / 0.8377 GB, free: 9.105 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.65e-05/1.414, allocations: 4.062 kB / 0.8377 GB, free: 9.102 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002909/1.417, allocations: 0.6904 MB / 0.8384 GB, free: 8.41 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002628/1.42, allocations: 0.8755 MB / 0.8392 GB, free: 7.531 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003211/1.42, allocations: 95.91 kB / 0.8393 GB, free: 7.438 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01247/1.433, allocations: 7.648 MB / 0.8468 GB, free: 15.68 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.734e-06/1.433, allocations: 8.031 kB / 0.8468 GB, free: 15.67 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01561/1.448, allocations: 8.797 MB / 0.8554 GB, free: 6.746 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00314/1.451, allocations: 0.8603 MB / 0.8562 GB, free: 5.883 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007064/1.452, allocations: 72 kB / 0.8563 GB, free: 5.812 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002009/1.454, allocations: 191.8 kB / 0.8565 GB, free: 5.625 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00062/1.455, allocations: 299 kB / 0.8568 GB, free: 5.332 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002401/1.455, allocations: 116 kB / 0.8569 GB, free: 5.219 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.003946/1.459, allocations: 2.371 MB / 0.8592 GB, free: 2.855 MB / 0.5138 GB Notification: Performance of sort global known variables: time 9.1e-08/1.459, allocations: 0 / 0.8592 GB, free: 2.855 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.005551/1.464, allocations: 1.461 MB / 0.8606 GB, free: 1.395 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.01615/1.481, allocations: 9.49 MB / 0.8699 GB, free: 7.777 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01219/1.493, allocations: 6.232 MB / 0.876 GB, free: 1.523 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.298e-06/1.493, allocations: 4 kB / 0.876 GB, free: 1.52 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005822/1.499, allocations: 2.887 MB / 0.8788 GB, free: 14.61 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004479/1.503, allocations: 0.8201 MB / 0.8796 GB, free: 13.8 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3509/1.854, allocations: 48.24 MB / 0.9267 GB, free: 168.1 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006612/1.861, allocations: 5.01 MB / 0.9316 GB, free: 166.2 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.005169/1.866, allocations: 1.591 MB / 0.9332 GB, free: 166 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004622/1.87, allocations: 2.773 MB / 0.9359 GB, free: 163.8 MB / 0.5607 GB Notification: Performance of SimCode: time 1.733e-06/1.87, allocations: 0 / 0.9359 GB, free: 163.8 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1853/2.056, allocations: 118 MB / 1.051 GB, free: 64.69 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.29/25.34, allocations: 7.328 kB / 1.051 GB, free: 64.69 MB / 0.5607 GB " [Timeout remaining time 634] (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: 28.494415804998425] Failed to read output from testmodel.py, exit status != 0: 25.525375337005244 25.546592519 25.044181499 Calling exit ...