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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001534/0.001534, allocations: 108.4 kB / 16.45 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.517/1.517, allocations: 225.6 MB / 244.8 MB, free: 14.21 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001603/0.001603, allocations: 198.7 kB / 299.8 MB, free: 9.848 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.04392/0.04392, allocations: 8.938 MB / 363.6 MB, free: 10.2 MB / 302.1 MB " [Timeout remaining time 180] Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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: Performance of FrontEnd - loaded program: time 0.002627/0.002627, allocations: 84.8 kB / 486.1 MB, free: 11.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1082, allocations: 54.41 MB / 0.5279 GB, free: 1.305 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve3): time 0.03296/0.1412, allocations: 25.54 MB / 0.5528 GB, free: 7.645 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01927/0.1604, allocations: 7.979 MB / 0.5606 GB, free: 15.63 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005475/0.1659, allocations: 179.5 kB / 0.5608 GB, free: 15.46 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02057/0.1865, allocations: 7.705 MB / 0.5683 GB, free: 7.738 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01161/0.1981, allocations: 3.12 MB / 0.5713 GB, free: 4.605 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006819/0.2049, allocations: 2.016 MB / 0.5733 GB, free: 2.594 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01608/0.221, allocations: 9.229 MB / 0.5823 GB, free: 9.336 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02331/0.2443, allocations: 12.81 MB / 0.5948 GB, free: 12.39 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008168/0.2525, allocations: 4.773 MB / 0.5995 GB, free: 7.605 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009296/0.2618, allocations: 5.307 MB / 0.6047 GB, free: 2.281 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004123/0.2659, allocations: 1.355 MB / 0.606 GB, free: 0.9258 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005569/0.2715, allocations: 1.714 MB / 0.6077 GB, free: 15.21 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004448/0.2759, allocations: 2.689 MB / 0.6103 GB, free: 12.52 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009564/0.2855, allocations: 5.078 MB / 0.6153 GB, free: 7.418 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02261/0.3081, allocations: 18.2 MB / 0.633 GB, free: 5.16 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.299e-06/0.3081, allocations: 4 kB / 0.633 GB, free: 5.156 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3081, allocations: 0 / 0.633 GB, free: 5.156 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003935/0.3085, allocations: 0 / 0.633 GB, free: 5.156 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.2457/0.5542, allocations: 10.93 MB / 0.6437 GB, free: 84.86 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.157e-05/0.5543, allocations: 9.625 kB / 0.6437 GB, free: 84.86 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005076/0.5593, allocations: 1.268 MB / 0.645 GB, free: 84.24 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03144/0.5908, allocations: 5.722 MB / 0.6505 GB, free: 81.98 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01566/0.6064, allocations: 5.82 MB / 0.6562 GB, free: 78.28 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006693/0.6071, allocations: 0.5816 MB / 0.6568 GB, free: 78.02 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003732/0.6108, allocations: 0.756 MB / 0.6575 GB, free: 77.77 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02802/0.6389, allocations: 12.77 MB / 0.67 GB, free: 65.61 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004185/0.6393, allocations: 19.89 kB / 0.67 GB, free: 65.59 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00255/0.6418, allocations: 323.6 kB / 0.6703 GB, free: 65.29 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004445/0.6423, allocations: 0.5006 MB / 0.6708 GB, free: 64.79 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02172/0.664, allocations: 12.25 MB / 0.6828 GB, free: 52.51 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05982/0.7238, allocations: 43.36 MB / 0.7251 GB, free: 8.441 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.023/0.7468, allocations: 24.8 MB / 0.7494 GB, free: 12.75 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005408/0.7522, allocations: 2.714 MB / 0.752 GB, free: 10.02 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005231/0.7527, allocations: 242.7 kB / 0.7522 GB, free: 9.762 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005101/0.7578, allocations: 2.586 MB / 0.7548 GB, free: 7.109 MB / 478.1 MB Notification: Performance of pre-optimization done (n=391): time 7.875e-06/0.7579, allocations: 0 / 0.7548 GB, free: 7.109 MB / 478.1 MB Notification: Performance of matching and sorting (n=397): time 0.04518/0.803, allocations: 18.4 MB / 0.7727 GB, free: 4.648 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002437/0.8033, allocations: 359.5 kB / 0.7731 GB, free: 4.223 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007365/0.8106, allocations: 3.523 MB / 0.7765 GB, free: 0.6953 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000663/0.8113, allocations: 93.7 kB / 0.7766 GB, free: 0.5977 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003269/0.8146, allocations: 3.495 MB / 0.78 GB, free: 13.07 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.00255/0.8171, allocations: 1.422 MB / 0.7814 GB, free: 11.64 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003254/0.8204, allocations: 1.077 MB / 0.7825 GB, free: 10.55 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001412/0.8205, allocations: 309.1 kB / 0.7828 GB, free: 10.25 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004598/0.8251, allocations: 2.552 MB / 0.7852 GB, free: 7.688 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006412/0.8315, allocations: 4.508 MB / 0.7896 GB, free: 2.297 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01137/0.8429, allocations: 7.451 MB / 0.7969 GB, free: 9.973 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.958e-05/0.843, allocations: 20 kB / 0.7969 GB, free: 9.953 MB / 0.5137 GB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01626/0.8592, allocations: 8.267 MB / 0.805 GB, free: 1.66 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001418/0.8594, allocations: 59.27 kB / 0.8051 GB, free: 1.598 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001583/0.8595, allocations: 60 kB / 0.8051 GB, free: 1.539 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003179/0.8627, allocations: 1.002 MB / 0.8061 GB, free: 0.5352 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004925/0.8676, allocations: 1.26 MB / 0.8073 GB, free: 15.27 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01491/0.8825, allocations: 8.819 MB / 0.816 GB, free: 6.301 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004694/0.8872, allocations: 355.5 kB / 0.8163 GB, free: 5.953 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001078/0.8883, allocations: 268 kB / 0.8165 GB, free: 5.691 MB / 0.5294 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.006113/0.8944, allocations: 2.898 MB / 0.8194 GB, free: 2.773 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001261/0.8957, allocations: 409.4 kB / 0.8198 GB, free: 2.371 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01291/0.9086, allocations: 6.156 MB / 0.8258 GB, free: 12.16 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.782e-05/0.9086, allocations: 43.94 kB / 0.8258 GB, free: 12.12 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.288e-05/0.9087, allocations: 8 kB / 0.8258 GB, free: 12.11 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.731e-05/0.9087, allocations: 23.92 kB / 0.8259 GB, free: 12.09 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03244/0.9412, allocations: 14.62 MB / 0.8401 GB, free: 13.29 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.793e-05/0.9412, allocations: 4 kB / 0.8401 GB, free: 13.29 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003322/0.9445, allocations: 0.687 MB / 0.8408 GB, free: 12.6 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002912/0.9475, allocations: 0.877 MB / 0.8417 GB, free: 11.72 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007587/0.9482, allocations: 95.97 kB / 0.8418 GB, free: 11.63 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01361/0.9618, allocations: 7.749 MB / 0.8493 GB, free: 3.73 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.144e-06/0.9618, allocations: 4 kB / 0.8493 GB, free: 3.727 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4423/1.404, allocations: 8.761 MB / 0.8579 GB, free: 192.5 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002735/1.407, allocations: 0.9309 MB / 0.8588 GB, free: 192.1 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0011/1.408, allocations: 72 kB / 0.8589 GB, free: 192.1 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002478/1.41, allocations: 201.8 kB / 0.859 GB, free: 192 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006017/1.411, allocations: 274.7 kB / 0.8593 GB, free: 192 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002419/1.411, allocations: 112.3 kB / 0.8594 GB, free: 191.9 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.003565/1.415, allocations: 2.366 MB / 0.8617 GB, free: 191 MB / 0.5607 GB Notification: Performance of sort global known variables: time 1.01e-07/1.415, allocations: 3.812 kB / 0.8617 GB, free: 191 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.005905/1.421, allocations: 1.456 MB / 0.8632 GB, free: 190.9 MB / 0.5607 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.01163/1.432, allocations: 9.473 MB / 0.8724 GB, free: 186.6 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.009522/1.442, allocations: 6.21 MB / 0.8785 GB, free: 184.2 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 8.576e-06/1.442, allocations: 7.719 kB / 0.8785 GB, free: 184.2 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.004273/1.446, allocations: 2.868 MB / 0.8813 GB, free: 183 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00426/1.45, allocations: 0.8154 MB / 0.8821 GB, free: 182.7 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06568/1.516, allocations: 48.19 MB / 0.9291 GB, free: 138.5 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005677/1.522, allocations: 5.008 MB / 0.934 GB, free: 133.4 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.004149/1.526, allocations: 1.594 MB / 0.9356 GB, free: 131.8 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003623/1.53, allocations: 2.756 MB / 0.9383 GB, free: 129.1 MB / 0.5607 GB Notification: Performance of SimCode: time 9.12e-07/1.53, allocations: 0 / 0.9383 GB, free: 129.1 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1582/1.688, allocations: 112.7 MB / 1.048 GB, free: 16.89 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.59/20.28, allocations: 18.95 kB / 1.048 GB, free: 16.88 MB / 0.5607 GB " [Timeout remaining time 639] (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: 23.924675941932946] Failed to read output from testmodel.py, exit status != 0: 20.617839362937957 20.45778071 20.146919164 Calling exit ...