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.001271/0.001271, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.41/1.41, allocations: 230.6 MB / 252.7 MB, free: 14.27 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.001659/0.001659, allocations: 209 kB / 309.2 MB, free: 3.152 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.93 MB / 374.6 MB, free: 6.59 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.002854/0.002854, allocations: 83.86 kB / 0.4892 GB, free: 44.74 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.089/0.09185, allocations: 55.61 MB / 0.5435 GB, free: 5.027 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve1): time 0.2375/0.3293, allocations: 21.96 MB / 0.5649 GB, free: 9.336 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01416/0.3435, allocations: 7.698 MB / 0.5724 GB, free: 9.227 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005511/0.349, allocations: 208.2 kB / 0.5726 GB, free: 9.223 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01748/0.3665, allocations: 7.158 MB / 0.5796 GB, free: 7.773 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01126/0.3777, allocations: 3.103 MB / 0.5827 GB, free: 6.387 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006563/0.3843, allocations: 1.994 MB / 0.5846 GB, free: 5.41 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01373/0.398, allocations: 9.399 MB / 0.5938 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02558/0.4236, allocations: 11.23 MB / 0.6048 GB, free: 10.31 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009457/0.4331, allocations: 4.884 MB / 0.6095 GB, free: 7.453 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009976/0.443, allocations: 5.048 MB / 0.6145 GB, free: 4.188 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004026/0.4471, allocations: 1.356 MB / 0.6158 GB, free: 3.707 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00662/0.4537, allocations: 1.718 MB / 0.6175 GB, free: 1.988 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004838/0.4585, allocations: 2.677 MB / 0.6201 GB, free: 15.3 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01001/0.4685, allocations: 3.954 MB / 0.6239 GB, free: 11.34 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02632/0.4949, allocations: 18.3 MB / 0.6418 GB, free: 8.984 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.4949, allocations: 3.938 kB / 0.6418 GB, free: 8.98 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.4949, allocations: 0 / 0.6418 GB, free: 8.98 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0004785/0.4954, allocations: 0 / 0.6418 GB, free: 8.98 MB / 430.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.03451/0.5299, allocations: 10.87 MB / 0.6524 GB, free: 14.02 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.479e-05/0.5299, allocations: 15.98 kB / 0.6524 GB, free: 14.01 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004694/0.5346, allocations: 1.272 MB / 0.6537 GB, free: 12.73 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0327/0.5673, allocations: 5.661 MB / 0.6592 GB, free: 7.055 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01566/0.583, allocations: 5.852 MB / 0.6649 GB, free: 1.141 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007716/0.5837, allocations: 0.578 MB / 0.6655 GB, free: 0.5625 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003672/0.5874, allocations: 0.7655 MB / 0.6662 GB, free: 15.8 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03759/0.625, allocations: 12.98 MB / 0.6789 GB, free: 2.715 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004386/0.6254, allocations: 11.91 kB / 0.6789 GB, free: 2.703 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003039/0.6285, allocations: 328 kB / 0.6792 GB, free: 2.383 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006647/0.6291, allocations: 0.5006 MB / 0.6797 GB, free: 1.879 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02889/0.658, allocations: 12.23 MB / 0.6917 GB, free: 5.625 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08118/0.7392, allocations: 38 MB / 0.7288 GB, free: 14.66 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01842/0.7576, allocations: 8.916 MB / 0.7375 GB, free: 6.727 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005327/0.7629, allocations: 2.714 MB / 0.7401 GB, free: 4.012 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000425/0.7634, allocations: 103 kB / 0.7402 GB, free: 3.91 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004564/0.7679, allocations: 2.787 MB / 0.743 GB, free: 1.004 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=391): time 7.284e-06/0.7679, allocations: 4 kB / 0.743 GB, free: 1 MB / 0.5137 GB Notification: Performance of matching and sorting (n=397): time 0.0425/0.8104, allocations: 18.34 MB / 0.7609 GB, free: 14.54 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002235/0.8107, allocations: 367.4 kB / 0.7612 GB, free: 14.11 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005841/0.8165, allocations: 3.643 MB / 0.7648 GB, free: 10.46 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0006597/0.8172, allocations: 89.7 kB / 0.7649 GB, free: 10.36 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002757/0.8199, allocations: 3.507 MB / 0.7683 GB, free: 6.824 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001777/0.8217, allocations: 1.406 MB / 0.7697 GB, free: 5.406 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001901/0.8236, allocations: 1.101 MB / 0.7707 GB, free: 4.297 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001313/0.8237, allocations: 301.1 kB / 0.771 GB, free: 4 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004239/0.828, allocations: 2.581 MB / 0.7735 GB, free: 1.406 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2087/1.037, allocations: 4.719 MB / 0.7781 GB, free: 165 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008697/1.045, allocations: 7.465 MB / 0.7854 GB, free: 162.3 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.446e-05/1.045, allocations: 16.91 kB / 0.7855 GB, free: 162.3 MB / 0.545 GB Notification: Performance of matching and sorting (n=721) (initialization): time 0.0145/1.06, allocations: 8.323 MB / 0.7936 GB, free: 159.2 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 8.562e-05/1.06, allocations: 57.62 kB / 0.7936 GB, free: 159.2 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001247/1.06, allocations: 61 kB / 0.7937 GB, free: 159.2 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0027/1.063, allocations: 0.9921 MB / 0.7947 GB, free: 159 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004631/1.067, allocations: 1.264 MB / 0.7959 GB, free: 158.8 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01189/1.079, allocations: 8.557 MB / 0.8043 GB, free: 154.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004353/1.084, allocations: 352.8 kB / 0.8046 GB, free: 154.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009316/1.085, allocations: 281.5 kB / 0.8049 GB, free: 154.1 MB / 0.545 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.004932/1.09, allocations: 2.899 MB / 0.8077 GB, free: 152.5 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009184/1.091, allocations: 406.7 kB / 0.8081 GB, free: 152.5 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009146/1.1, allocations: 6.176 MB / 0.8141 GB, free: 150 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.003e-05/1.1, allocations: 42.72 kB / 0.8141 GB, free: 150 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.422e-05/1.1, allocations: 11.69 kB / 0.8142 GB, free: 150 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.585e-05/1.1, allocations: 22.5 kB / 0.8142 GB, free: 150 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02209/1.122, allocations: 13.98 MB / 0.8278 GB, free: 144.1 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.644e-05/1.122, allocations: 7.438 kB / 0.8278 GB, free: 144.1 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002489/1.124, allocations: 0.689 MB / 0.8285 GB, free: 144.1 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002222/1.127, allocations: 0.8703 MB / 0.8294 GB, free: 143.5 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004206/1.127, allocations: 87.69 kB / 0.8294 GB, free: 143.4 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00875/1.136, allocations: 7.499 MB / 0.8368 GB, free: 136.7 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.959e-06/1.136, allocations: 12.03 kB / 0.8368 GB, free: 136.7 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0116/1.147, allocations: 8.85 MB / 0.8454 GB, free: 128.2 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002733/1.15, allocations: 0.8575 MB / 0.8463 GB, free: 127.4 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009648/1.151, allocations: 72 kB / 0.8463 GB, free: 127.3 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002121/1.153, allocations: 191.8 kB / 0.8465 GB, free: 127.1 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004901/1.154, allocations: 294.6 kB / 0.8468 GB, free: 126.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001905/1.154, allocations: 120 kB / 0.8469 GB, free: 126.7 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.002744/1.157, allocations: 2.367 MB / 0.8492 GB, free: 124.3 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.31e-07/1.157, allocations: 0 / 0.8492 GB, free: 124.3 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.004346/1.161, allocations: 1.458 MB / 0.8506 GB, free: 122.9 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.01075/1.172, allocations: 9.554 MB / 0.86 GB, free: 113.2 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.009143/1.181, allocations: 6.276 MB / 0.8661 GB, free: 106.9 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.666e-06/1.181, allocations: 0 / 0.8661 GB, free: 106.9 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003962/1.185, allocations: 2.924 MB / 0.869 GB, free: 103.9 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00348/1.188, allocations: 0.8188 MB / 0.8698 GB, free: 103.2 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06311/1.251, allocations: 48.34 MB / 0.917 GB, free: 52.71 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004081/1.255, allocations: 4.535 MB / 0.9214 GB, free: 48.12 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003732/1.259, allocations: 1.586 MB / 0.9229 GB, free: 46.53 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003229/1.262, allocations: 2.776 MB / 0.9256 GB, free: 43.75 MB / 0.545 GB Notification: Performance of SimCode: time 1.202e-06/1.262, allocations: 0 / 0.9256 GB, free: 43.75 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3935/1.656, allocations: 115.8 MB / 1.039 GB, free: 193.4 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.71/18.37, allocations: 2.188 kB / 1.039 GB, free: 193.4 MB / 0.5762 GB " [Timeout remaining time 641] (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: 21.238074810244143] Failed to read output from testmodel.py, exit status != 0: 18.53607690986246 18.554319776 18.055732466 Calling exit ...