Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.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.001306/0.001306, 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.352/1.352, allocations: 230.6 MB / 252.7 MB, free: 8.055 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.001589/0.001589, allocations: 214.4 kB / 309.2 MB, free: 2.93 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.03981/0.03981, allocations: 8.909 MB / 374.6 MB, free: 1.711 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_VCurve3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_VCurve3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve3",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.00245/0.00245, allocations: 79.88 kB / 0.4892 GB, free: 7.133 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2452/0.2477, allocations: 55.59 MB / 0.5435 GB, free: 26.68 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve3): time 0.01829/0.266, allocations: 22.01 MB / 0.565 GB, free: 12.06 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0145/0.2805, allocations: 7.693 MB / 0.5725 GB, free: 6.676 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004397/0.2849, allocations: 200 kB / 0.5727 GB, free: 6.617 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01576/0.3006, allocations: 7.171 MB / 0.5797 GB, free: 2.613 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00945/0.3101, allocations: 3.1 MB / 0.5827 GB, free: 368 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006002/0.3161, allocations: 2.001 MB / 0.5847 GB, free: 14.79 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01367/0.3298, allocations: 9.393 MB / 0.5938 GB, free: 9.035 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02085/0.3506, allocations: 11.19 MB / 0.6048 GB, free: 13.93 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01058/0.3612, allocations: 4.886 MB / 0.6095 GB, free: 9.035 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009149/0.3703, allocations: 5.049 MB / 0.6145 GB, free: 3.969 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003273/0.3736, allocations: 1.355 MB / 0.6158 GB, free: 2.613 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005047/0.3787, allocations: 1.718 MB / 0.6175 GB, free: 0.8945 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003593/0.3823, allocations: 2.681 MB / 0.6201 GB, free: 14.21 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006971/0.3892, allocations: 3.954 MB / 0.6239 GB, free: 10.24 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02177/0.411, allocations: 18.29 MB / 0.6418 GB, free: 7.891 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.082e-06/0.411, allocations: 0 / 0.6418 GB, free: 7.891 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.411, allocations: 4 kB / 0.6418 GB, free: 7.887 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003736/0.4114, allocations: 0 / 0.6418 GB, free: 7.887 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.02963/0.441, allocations: 10.88 MB / 0.6524 GB, free: 12.92 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.402e-05/0.4411, allocations: 8.031 kB / 0.6524 GB, free: 12.91 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00362/0.4447, allocations: 1.268 MB / 0.6537 GB, free: 11.63 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03252/0.4772, allocations: 5.672 MB / 0.6592 GB, free: 5.949 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01417/0.4914, allocations: 5.84 MB / 0.6649 GB, free: 48 kB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006296/0.492, allocations: 0.5781 MB / 0.6655 GB, free: 15.46 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00269/0.4947, allocations: 0.7694 MB / 0.6662 GB, free: 14.7 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03023/0.5249, allocations: 12.99 MB / 0.6789 GB, free: 1.613 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002863/0.5252, allocations: 11.91 kB / 0.6789 GB, free: 1.602 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00232/0.5275, allocations: 327.9 kB / 0.6792 GB, free: 1.281 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005908/0.5281, allocations: 0.5006 MB / 0.6797 GB, free: 0.7773 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02545/0.5536, allocations: 12.24 MB / 0.6917 GB, free: 4.52 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4375/0.991, allocations: 37.98 MB / 0.7288 GB, free: 87.28 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0163/1.007, allocations: 8.909 MB / 0.7375 GB, free: 84.79 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003985/1.011, allocations: 2.714 MB / 0.7401 GB, free: 83.76 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003261/1.012, allocations: 100.3 kB / 0.7402 GB, free: 83.75 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003341/1.015, allocations: 2.792 MB / 0.7429 GB, free: 82.34 MB / 494.1 MB Notification: Performance of pre-optimization done (n=391): time 6.652e-06/1.015, allocations: 0 / 0.7429 GB, free: 82.34 MB / 494.1 MB Notification: Performance of matching and sorting (n=397): time 0.03194/1.047, allocations: 18.35 MB / 0.7609 GB, free: 71.49 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.359e-05/1.047, allocations: 356.1 kB / 0.7612 GB, free: 71.11 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004287/1.051, allocations: 3.641 MB / 0.7648 GB, free: 68.72 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005971/1.052, allocations: 85.7 kB / 0.7648 GB, free: 68.63 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001573/1.053, allocations: 3.502 MB / 0.7683 GB, free: 65.53 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001237/1.055, allocations: 1.419 MB / 0.7697 GB, free: 64.13 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001451/1.056, allocations: 1.101 MB / 0.7707 GB, free: 63.02 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.117e-05/1.056, allocations: 305.1 kB / 0.771 GB, free: 62.72 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003122/1.059, allocations: 2.581 MB / 0.7735 GB, free: 60.12 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003673/1.063, allocations: 4.721 MB / 0.7781 GB, free: 54.47 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007151/1.07, allocations: 7.463 MB / 0.7854 GB, free: 46.14 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.864e-05/1.07, allocations: 24 kB / 0.7855 GB, free: 46.11 MB / 494.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01171/1.082, allocations: 8.315 MB / 0.7936 GB, free: 37.77 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.888e-05/1.082, allocations: 63.25 kB / 0.7936 GB, free: 37.7 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.205e-05/1.082, allocations: 60 kB / 0.7937 GB, free: 37.64 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002387/1.084, allocations: 0.9967 MB / 0.7947 GB, free: 36.65 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004119/1.089, allocations: 1.263 MB / 0.7959 GB, free: 35.39 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01033/1.099, allocations: 8.558 MB / 0.8043 GB, free: 26.71 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004263/1.103, allocations: 363.4 kB / 0.8046 GB, free: 26.36 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008953/1.104, allocations: 268 kB / 0.8049 GB, free: 26.09 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.004253/1.108, allocations: 2.899 MB / 0.8077 GB, free: 23.18 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008624/1.109, allocations: 401.4 kB / 0.8081 GB, free: 22.78 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008682/1.118, allocations: 6.177 MB / 0.8141 GB, free: 16.55 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.842e-05/1.118, allocations: 47.94 kB / 0.8142 GB, free: 16.5 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.398e-05/1.118, allocations: 8 kB / 0.8142 GB, free: 16.49 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.742e-05/1.118, allocations: 23.92 kB / 0.8142 GB, free: 16.47 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02209/1.14, allocations: 13.98 MB / 0.8278 GB, free: 2.422 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.38e-05/1.14, allocations: 4 kB / 0.8278 GB, free: 2.418 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002392/1.142, allocations: 0.6909 MB / 0.8285 GB, free: 1.727 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00212/1.145, allocations: 0.8755 MB / 0.8294 GB, free: 0.8477 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002345/1.145, allocations: 91.97 kB / 0.8295 GB, free: 0.7578 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01149/1.156, allocations: 7.503 MB / 0.8368 GB, free: 9.137 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.138e-06/1.156, allocations: 8.031 kB / 0.8368 GB, free: 9.129 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01475/1.171, allocations: 8.837 MB / 0.8454 GB, free: 156 kB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002728/1.174, allocations: 0.8565 MB / 0.8463 GB, free: 15.29 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000727/1.175, allocations: 80 kB / 0.8463 GB, free: 15.21 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002156/1.177, allocations: 195.8 kB / 0.8465 GB, free: 15.02 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000587/1.177, allocations: 291 kB / 0.8468 GB, free: 14.74 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002502/1.178, allocations: 120 kB / 0.8469 GB, free: 14.62 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.003757/1.181, allocations: 2.359 MB / 0.8492 GB, free: 12.27 MB / 0.5138 GB Notification: Performance of sort global known variables: time 9.1e-08/1.181, allocations: 0 / 0.8492 GB, free: 12.27 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.00507/1.186, allocations: 1.465 MB / 0.8506 GB, free: 10.8 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.01501/1.201, allocations: 9.554 MB / 0.86 GB, free: 1.109 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.01192/1.213, allocations: 6.285 MB / 0.8661 GB, free: 10.79 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.999e-06/1.213, allocations: 4 kB / 0.8661 GB, free: 10.79 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.006175/1.219, allocations: 2.908 MB / 0.869 GB, free: 7.844 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004255/1.224, allocations: 0.8236 MB / 0.8698 GB, free: 7.043 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08582/1.31, allocations: 48.35 MB / 0.917 GB, free: 4.547 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.207/1.517, allocations: 4.528 MB / 0.9214 GB, free: 192.3 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.004868/1.521, allocations: 1.585 MB / 0.923 GB, free: 192.2 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003575/1.525, allocations: 2.778 MB / 0.9257 GB, free: 192.2 MB / 0.5763 GB Notification: Performance of SimCode: time 9.92e-07/1.525, allocations: 0 / 0.9257 GB, free: 192.2 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1537/1.679, allocations: 115.8 MB / 1.039 GB, free: 107.5 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.37/18.04, allocations: 3.938 kB / 1.039 GB, free: 107.5 MB / 0.5763 GB " [Timeout remaining time 642] (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve3_fmu --startTime=0 --stopTime=200 --stepSize=0.1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve3.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 21.028143201954663] Failed to read output from testmodel.py, exit status != 0: 18.21617012610659 18.227508797 17.813860438 Calling exit ...