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.0007717/0.0007717, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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 0.9268/0.9268, allocations: 177.1 MB / 199.4 MB, free: 5.934 MB / 186.7 MB " [Timeout remaining time 179] 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.001128/0.001128, allocations: 152.6 kB / 256 MB, free: 13.34 MB / 250.7 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.02204/0.02204, allocations: 6.661 MB / 319 MB, free: 26.77 MB / 266.7 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: Performance of FrontEnd - loaded program: time 1.713e-06/1.713e-06, allocations: 3.938 kB / 445.5 MB, free: 37.45 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.466e-05/1.637e-05, allocations: 2.281 kB / 445.5 MB, free: 37.44 MB / 330.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve4): time 0.01303/0.01305, allocations: 22.02 MB / 467.5 MB, free: 15.31 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.009485/0.02254, allocations: 7.707 MB / 475.2 MB, free: 7.582 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001831/0.02437, allocations: 203 kB / 475.4 MB, free: 7.383 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00625/0.03062, allocations: 7.56 MB / 482.9 MB, free: 15.8 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005681/0.0363, allocations: 3.166 MB / 486.1 MB, free: 12.62 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003201/0.0395, allocations: 2.016 MB / 488.1 MB, free: 10.62 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.00892/0.04842, allocations: 9.701 MB / 497.8 MB, free: 0.8789 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01244/0.06086, allocations: 11.23 MB / 0.4971 GB, free: 5.516 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006944/0.0678, allocations: 7.133 MB / 0.5041 GB, free: 14.37 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00389/0.07169, allocations: 4.525 MB / 0.5085 GB, free: 9.836 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001022/0.07271, allocations: 1.352 MB / 0.5098 GB, free: 8.484 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001853/0.07457, allocations: 1.745 MB / 0.5115 GB, free: 6.738 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001599/0.07617, allocations: 2.727 MB / 0.5142 GB, free: 4.004 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002425/0.07859, allocations: 3.415 MB / 0.5175 GB, free: 0.582 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01256/0.09115, allocations: 18.47 MB / 0.5356 GB, free: 14.05 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.09115, allocations: 4 kB / 0.5356 GB, free: 14.05 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.974e-06/0.09115, allocations: 0 / 0.5356 GB, free: 14.05 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002495/0.0914, allocations: 0 / 0.5356 GB, free: 14.05 MB / 410.7 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.01643/0.1078, allocations: 10.8 MB / 0.5461 GB, free: 3.164 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.933e-05/0.1079, allocations: 8.031 kB / 0.5461 GB, free: 3.156 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001587/0.1095, allocations: 1.268 MB / 0.5474 GB, free: 1.879 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01545/0.1249, allocations: 5.676 MB / 0.5529 GB, free: 12.19 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008337/0.1333, allocations: 5.852 MB / 0.5586 GB, free: 6.27 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003143/0.1336, allocations: 0.578 MB / 0.5592 GB, free: 5.691 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00103/0.1346, allocations: 0.7655 MB / 0.5599 GB, free: 4.926 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3174/0.452, allocations: 12.98 MB / 0.5726 GB, free: 103.7 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001154/0.4522, allocations: 13.75 kB / 0.5726 GB, free: 103.7 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005358/0.4527, allocations: 324.9 kB / 0.5729 GB, free: 103.5 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000297/0.453, allocations: 0.4946 MB / 0.5734 GB, free: 103.4 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01237/0.4654, allocations: 12.23 MB / 0.5854 GB, free: 96.99 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03668/0.502, allocations: 38.01 MB / 0.6225 GB, free: 58.94 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008223/0.5103, allocations: 8.917 MB / 0.6312 GB, free: 51.02 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00222/0.5125, allocations: 2.718 MB / 0.6338 GB, free: 48.31 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001841/0.5127, allocations: 94.98 kB / 0.6339 GB, free: 48.22 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002012/0.5147, allocations: 2.791 MB / 0.6367 GB, free: 45.31 MB / 426.8 MB Notification: Performance of pre-optimization done (n=391): time 5.851e-06/0.5147, allocations: 0 / 0.6367 GB, free: 45.31 MB / 426.8 MB Notification: Performance of matching and sorting (n=397): time 0.01995/0.5346, allocations: 18.35 MB / 0.6546 GB, free: 27.22 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.377e-05/0.5347, allocations: 355.5 kB / 0.6549 GB, free: 26.8 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002932/0.5376, allocations: 3.642 MB / 0.6585 GB, free: 23.24 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001373/0.5378, allocations: 97.69 kB / 0.6586 GB, free: 23.14 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008509/0.5386, allocations: 3.479 MB / 0.662 GB, free: 19.76 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004698/0.5391, allocations: 1.4 MB / 0.6633 GB, free: 18.38 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009529/0.54, allocations: 1.093 MB / 0.6644 GB, free: 17.28 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 2.98e-05/0.5401, allocations: 305.1 kB / 0.6647 GB, free: 16.98 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002137/0.5422, allocations: 2.581 MB / 0.6672 GB, free: 14.38 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002664/0.5449, allocations: 4.721 MB / 0.6718 GB, free: 8.73 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005116/0.55, allocations: 7.463 MB / 0.6791 GB, free: 404 kB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.905e-05/0.55, allocations: 20 kB / 0.6791 GB, free: 384 kB / 426.8 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.009378/0.5594, allocations: 8.319 MB / 0.6872 GB, free: 8.02 MB / 442.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.461e-05/0.5594, allocations: 61.64 kB / 0.6873 GB, free: 7.953 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-05/0.5595, allocations: 60 kB / 0.6874 GB, free: 7.895 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001598/0.5611, allocations: 1 MB / 0.6883 GB, free: 6.895 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002207/0.5633, allocations: 1.264 MB / 0.6896 GB, free: 5.629 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008173/0.5715, allocations: 8.563 MB / 0.6979 GB, free: 12.96 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002681/0.5742, allocations: 351.5 kB / 0.6983 GB, free: 12.61 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002811/0.5744, allocations: 275.9 kB / 0.6985 GB, free: 12.34 MB / 458.8 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.003614/0.578, allocations: 2.895 MB / 0.7014 GB, free: 9.43 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007525/0.5788, allocations: 413.4 kB / 0.7018 GB, free: 9.023 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006519/0.5853, allocations: 6.173 MB / 0.7078 GB, free: 2.789 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.232e-05/0.5853, allocations: 44.17 kB / 0.7078 GB, free: 2.746 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.077e-05/0.5854, allocations: 12 kB / 0.7078 GB, free: 2.734 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.282e-05/0.5854, allocations: 23.86 kB / 0.7079 GB, free: 2.711 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0148/0.6002, allocations: 13.98 MB / 0.7215 GB, free: 4.668 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.568e-06/0.6002, allocations: 7.938 kB / 0.7215 GB, free: 4.66 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001402/0.6016, allocations: 0.6871 MB / 0.7222 GB, free: 3.973 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001575/0.6032, allocations: 0.8754 MB / 0.723 GB, free: 3.094 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001591/0.6033, allocations: 91.97 kB / 0.7231 GB, free: 3.004 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006928/0.6102, allocations: 7.499 MB / 0.7305 GB, free: 11.4 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.038e-06/0.6103, allocations: 8 kB / 0.7305 GB, free: 11.39 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009096/0.6193, allocations: 8.831 MB / 0.7391 GB, free: 2.422 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001772/0.6211, allocations: 0.8604 MB / 0.7399 GB, free: 1.559 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003623/0.6215, allocations: 79.94 kB / 0.74 GB, free: 1.48 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001077/0.6226, allocations: 191.8 kB / 0.7402 GB, free: 1.293 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000411/0.623, allocations: 291 kB / 0.7405 GB, free: 1.008 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001942/0.6232, allocations: 120 kB / 0.7406 GB, free: 0.8906 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.002708/0.6259, allocations: 2.367 MB / 0.7429 GB, free: 14.53 MB / 0.4949 GB Notification: Performance of sort global known variables: time 3.51e-07/0.6259, allocations: 0 / 0.7429 GB, free: 14.53 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.003858/0.6297, allocations: 1.457 MB / 0.7443 GB, free: 13.07 MB / 0.4949 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.009529/0.6393, allocations: 9.548 MB / 0.7536 GB, free: 3.375 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.1866/0.8259, allocations: 6.272 MB / 0.7598 GB, free: 180.9 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 7.965e-06/0.8259, allocations: 2.516 kB / 0.7598 GB, free: 180.9 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.003537/0.8294, allocations: 2.912 MB / 0.7626 GB, free: 180.6 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002667/0.8321, allocations: 0.8213 MB / 0.7634 GB, free: 180.3 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05216/0.8843, allocations: 48.4 MB / 0.8107 GB, free: 139.1 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002728/0.887, allocations: 4.536 MB / 0.8151 GB, free: 134.5 MB / 0.4949 GB Notification: Performance of simCode: alias equations: time 0.002408/0.8894, allocations: 1.598 MB / 0.8167 GB, free: 132.9 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00195/0.8913, allocations: 2.773 MB / 0.8194 GB, free: 130.2 MB / 0.4949 GB Notification: Performance of SimCode: time 1.232e-06/0.8913, allocations: 0 / 0.8194 GB, free: 130.2 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1037/0.9951, allocations: 115.6 MB / 0.9322 GB, free: 15.29 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.17/11.17, allocations: 12 kB / 0.9322 GB, free: 15.28 MB / 0.4949 GB " [Timeout remaining time 649] (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: 13.51173226814717] Failed to read output from testmodel.py, exit status != 0: 11.307656121440232 11.481788739 11.389112871 Calling exit ...