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.001312/0.001312, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.403/1.403, allocations: 230.6 MB / 252.7 MB, free: 8.059 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.001604/0.001604, allocations: 232.2 kB / 309.2 MB, free: 2.934 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.04006/0.04006, allocations: 8.921 MB / 374.6 MB, free: 1.719 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.002567/0.002567, allocations: 83.88 kB / 0.4892 GB, free: 7.156 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2692/0.2717, allocations: 55.61 MB / 0.5435 GB, free: 26.61 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve2): time 0.01782/0.2896, allocations: 22 MB / 0.565 GB, free: 12 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01386/0.3034, allocations: 7.703 MB / 0.5725 GB, free: 6.602 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004972/0.3084, allocations: 200.2 kB / 0.5727 GB, free: 6.543 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01693/0.3253, allocations: 7.164 MB / 0.5797 GB, free: 2.547 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009757/0.3351, allocations: 3.098 MB / 0.5827 GB, free: 360 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006124/0.3412, allocations: 2.007 MB / 0.5847 GB, free: 14.79 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01372/0.3549, allocations: 9.391 MB / 0.5938 GB, free: 9.031 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01952/0.3744, allocations: 11.19 MB / 0.6048 GB, free: 13.95 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008814/0.3833, allocations: 4.878 MB / 0.6095 GB, free: 9.059 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009287/0.3925, allocations: 5.049 MB / 0.6145 GB, free: 3.992 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003467/0.396, allocations: 1.359 MB / 0.6158 GB, free: 2.633 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005198/0.4012, allocations: 1.718 MB / 0.6175 GB, free: 0.9141 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003508/0.4047, allocations: 2.677 MB / 0.6201 GB, free: 14.23 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007251/0.412, allocations: 3.958 MB / 0.6239 GB, free: 10.26 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02296/0.4349, allocations: 18.29 MB / 0.6418 GB, free: 7.91 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/0.4349, allocations: 0 / 0.6418 GB, free: 7.91 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.4349, allocations: 4 kB / 0.6418 GB, free: 7.906 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004544/0.4354, allocations: 0 / 0.6418 GB, free: 7.906 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.03354/0.4689, allocations: 10.88 MB / 0.6524 GB, free: 12.94 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.076e-05/0.469, allocations: 8.031 kB / 0.6524 GB, free: 12.93 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004906/0.4739, allocations: 1.268 MB / 0.6537 GB, free: 11.65 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03344/0.5073, allocations: 5.68 MB / 0.6592 GB, free: 5.961 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01442/0.5218, allocations: 5.833 MB / 0.6649 GB, free: 68 kB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006859/0.5224, allocations: 0.582 MB / 0.6655 GB, free: 15.48 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002861/0.5253, allocations: 0.7616 MB / 0.6662 GB, free: 14.72 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03244/0.5578, allocations: 12.99 MB / 0.6789 GB, free: 1.633 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003582/0.5581, allocations: 15.91 kB / 0.6789 GB, free: 1.617 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002536/0.5606, allocations: 324 kB / 0.6792 GB, free: 1.301 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006183/0.5613, allocations: 0.4928 MB / 0.6797 GB, free: 0.8047 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02718/0.5884, allocations: 12.24 MB / 0.6917 GB, free: 4.543 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4471/1.036, allocations: 37.98 MB / 0.7288 GB, free: 87.27 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01709/1.053, allocations: 8.909 MB / 0.7375 GB, free: 84.78 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004268/1.057, allocations: 2.717 MB / 0.7401 GB, free: 83.75 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003392/1.057, allocations: 104.5 kB / 0.7402 GB, free: 83.73 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003571/1.061, allocations: 2.788 MB / 0.7429 GB, free: 82.38 MB / 494.1 MB Notification: Performance of pre-optimization done (n=391): time 7.003e-06/1.061, allocations: 0 / 0.7429 GB, free: 82.38 MB / 494.1 MB Notification: Performance of matching and sorting (n=397): time 0.03281/1.094, allocations: 18.35 MB / 0.7609 GB, free: 71.57 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.173e-05/1.094, allocations: 353.9 kB / 0.7612 GB, free: 71.18 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004409/1.098, allocations: 3.645 MB / 0.7648 GB, free: 68.75 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005735/1.099, allocations: 85.7 kB / 0.7648 GB, free: 68.66 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001375/1.1, allocations: 3.506 MB / 0.7683 GB, free: 65.55 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009896/1.101, allocations: 1.412 MB / 0.7696 GB, free: 64.16 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001351/1.102, allocations: 1.104 MB / 0.7707 GB, free: 63.05 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 3.772e-05/1.102, allocations: 309.1 kB / 0.771 GB, free: 62.74 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003026/1.106, allocations: 2.578 MB / 0.7735 GB, free: 60.15 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003794/1.109, allocations: 4.717 MB / 0.7781 GB, free: 54.5 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007362/1.117, allocations: 7.471 MB / 0.7854 GB, free: 46.16 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.657e-05/1.117, allocations: 24 kB / 0.7855 GB, free: 46.14 MB / 494.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01179/1.128, allocations: 8.319 MB / 0.7936 GB, free: 37.79 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.789e-05/1.129, allocations: 53.7 kB / 0.7936 GB, free: 37.73 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.728e-05/1.129, allocations: 64 kB / 0.7937 GB, free: 37.67 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002352/1.131, allocations: 0.9929 MB / 0.7947 GB, free: 36.68 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003988/1.135, allocations: 1.263 MB / 0.7959 GB, free: 35.41 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01031/1.145, allocations: 8.562 MB / 0.8043 GB, free: 26.73 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004157/1.149, allocations: 367.4 kB / 0.8046 GB, free: 26.38 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008251/1.15, allocations: 268 kB / 0.8049 GB, free: 26.11 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.004126/1.154, allocations: 2.895 MB / 0.8077 GB, free: 23.2 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008776/1.155, allocations: 409.4 kB / 0.8081 GB, free: 22.8 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008822/1.164, allocations: 6.169 MB / 0.8141 GB, free: 16.57 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.602e-05/1.164, allocations: 43.94 kB / 0.8142 GB, free: 16.53 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.452e-05/1.164, allocations: 12 kB / 0.8142 GB, free: 16.52 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.554e-05/1.164, allocations: 23.92 kB / 0.8142 GB, free: 16.49 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02167/1.186, allocations: 13.97 MB / 0.8278 GB, free: 2.449 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.63e-05/1.186, allocations: 4 kB / 0.8278 GB, free: 2.445 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002529/1.188, allocations: 0.6909 MB / 0.8285 GB, free: 1.754 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002155/1.191, allocations: 0.8716 MB / 0.8294 GB, free: 0.8789 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003158/1.191, allocations: 95.97 kB / 0.8295 GB, free: 0.7852 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01154/1.202, allocations: 7.509 MB / 0.8368 GB, free: 9.164 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.028e-05/1.202, allocations: 8.031 kB / 0.8368 GB, free: 9.156 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01526/1.218, allocations: 8.839 MB / 0.8454 GB, free: 180 kB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002883/1.221, allocations: 0.8606 MB / 0.8463 GB, free: 15.31 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008965/1.221, allocations: 72 kB / 0.8463 GB, free: 15.24 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002201/1.224, allocations: 191.8 kB / 0.8465 GB, free: 15.05 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006216/1.224, allocations: 290.9 kB / 0.8468 GB, free: 14.77 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002609/1.225, allocations: 120 kB / 0.8469 GB, free: 14.65 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.003785/1.228, allocations: 2.359 MB / 0.8492 GB, free: 12.3 MB / 0.5138 GB Notification: Performance of sort global known variables: time 8e-08/1.228, allocations: 0 / 0.8492 GB, free: 12.3 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.005071/1.233, allocations: 1.469 MB / 0.8506 GB, free: 10.83 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.01599/1.249, allocations: 9.556 MB / 0.86 GB, free: 1.137 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.01177/1.261, allocations: 6.277 MB / 0.8661 GB, free: 10.82 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.316e-05/1.261, allocations: 4 kB / 0.8661 GB, free: 10.82 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005934/1.267, allocations: 2.912 MB / 0.869 GB, free: 7.875 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004472/1.272, allocations: 0.8156 MB / 0.8698 GB, free: 7.082 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.087/1.359, allocations: 48.36 MB / 0.917 GB, free: 4.586 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00655/1.365, allocations: 4.535 MB / 0.9214 GB, free: 0 / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.2198/1.585, allocations: 1.585 MB / 0.923 GB, free: 192 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004598/1.59, allocations: 2.775 MB / 0.9257 GB, free: 192 MB / 0.5763 GB Notification: Performance of SimCode: time 1.563e-06/1.59, allocations: 0 / 0.9257 GB, free: 192 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1573/1.747, allocations: 115.8 MB / 1.039 GB, free: 107.3 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.18/17.92, allocations: 3.938 kB / 1.039 GB, free: 107.3 MB / 0.5763 GB " [Timeout remaining time 642] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve2_fmu --startTime=0 --stopTime=200 --stepSize=0.1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve2.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 21.030305224936455] Failed to read output from testmodel.py, exit status != 0: 18.097481481730938 18.110494658 17.673001244 Calling exit ...