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.001534/0.001534, allocations: 114.3 kB / 18.94 MB, free: 2.957 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.499/1.499, allocations: 230.6 MB / 252.6 MB, free: 8.344 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.001729/0.001729, allocations: 210.3 kB / 309.2 MB, free: 3.176 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.04326/0.04326, allocations: 8.92 MB / 374.6 MB, free: 1.922 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_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: 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: 87.86 kB / 0.4893 GB, free: 7.328 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2992/0.3021, allocations: 55.6 MB / 0.5436 GB, free: 26.96 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve4): time 0.0201/0.3222, allocations: 25.66 MB / 0.5686 GB, free: 8.5 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01522/0.3374, allocations: 8.08 MB / 0.5765 GB, free: 2.68 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004825/0.3422, allocations: 201.3 kB / 0.5767 GB, free: 2.621 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01797/0.3602, allocations: 7.762 MB / 0.5843 GB, free: 14.01 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0114/0.3716, allocations: 3.179 MB / 0.5874 GB, free: 11.76 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006812/0.3784, allocations: 2.087 MB / 0.5894 GB, free: 10.11 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01558/0.394, allocations: 9.41 MB / 0.5986 GB, free: 4.336 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02423/0.4182, allocations: 11.35 MB / 0.6097 GB, free: 9.312 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009759/0.428, allocations: 4.878 MB / 0.6145 GB, free: 4.422 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0108/0.4388, allocations: 5.373 MB / 0.6197 GB, free: 15.03 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005954/0.4447, allocations: 1.355 MB / 0.621 GB, free: 13.68 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006971/0.4517, allocations: 1.742 MB / 0.6227 GB, free: 11.93 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004932/0.4566, allocations: 2.681 MB / 0.6254 GB, free: 9.246 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01084/0.4675, allocations: 5.086 MB / 0.6303 GB, free: 4.141 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03179/0.4993, allocations: 18.23 MB / 0.6481 GB, free: 1.852 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.4993, allocations: 0 / 0.6481 GB, free: 1.852 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.4993, allocations: 0 / 0.6481 GB, free: 1.852 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005886/0.4999, allocations: 4 kB / 0.6481 GB, free: 1.848 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.04/0.5399, allocations: 10.88 MB / 0.6588 GB, free: 6.871 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.806e-05/0.5399, allocations: 12.03 kB / 0.6588 GB, free: 6.859 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004904/0.5448, allocations: 1.272 MB / 0.66 GB, free: 5.578 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03445/0.5793, allocations: 5.668 MB / 0.6655 GB, free: 15.9 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01587/0.5951, allocations: 5.84 MB / 0.6712 GB, free: 9.996 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006446/0.5958, allocations: 0.5819 MB / 0.6718 GB, free: 9.414 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0033/0.5991, allocations: 0.7694 MB / 0.6726 GB, free: 8.645 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03351/0.6326, allocations: 12.8 MB / 0.6851 GB, free: 11.79 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002564/0.6328, allocations: 15.88 kB / 0.6851 GB, free: 11.77 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00197/0.6348, allocations: 328 kB / 0.6854 GB, free: 11.45 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000629/0.6354, allocations: 0.4928 MB / 0.6859 GB, free: 10.95 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4965/1.132, allocations: 12.29 MB / 0.6979 GB, free: 106.1 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07766/1.21, allocations: 41.41 MB / 0.7383 GB, free: 83.34 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02087/1.23, allocations: 9.017 MB / 0.7471 GB, free: 79.39 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005266/1.236, allocations: 2.717 MB / 0.7498 GB, free: 77.97 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005768/1.236, allocations: 121.3 kB / 0.7499 GB, free: 77.93 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004558/1.241, allocations: 2.591 MB / 0.7524 GB, free: 76.32 MB / 494.1 MB Notification: Performance of pre-optimization done (n=391): time 7.064e-06/1.241, allocations: 0 / 0.7524 GB, free: 76.32 MB / 494.1 MB Notification: Performance of matching and sorting (n=397): time 0.03246/1.273, allocations: 18.29 MB / 0.7703 GB, free: 64.36 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001173/1.273, allocations: 355.5 kB / 0.7706 GB, free: 63.94 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004264/1.278, allocations: 3.533 MB / 0.7741 GB, free: 60.45 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003719/1.278, allocations: 89.7 kB / 0.7742 GB, free: 60.36 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0014/1.28, allocations: 3.498 MB / 0.7776 GB, free: 57.01 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001022/1.281, allocations: 1.419 MB / 0.779 GB, free: 55.61 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001374/1.282, allocations: 1.101 MB / 0.78 GB, free: 54.5 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 5.527e-05/1.282, allocations: 301.1 kB / 0.7803 GB, free: 54.2 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00301/1.285, allocations: 2.556 MB / 0.7828 GB, free: 51.64 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003796/1.289, allocations: 4.516 MB / 0.7872 GB, free: 46.24 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007315/1.296, allocations: 7.471 MB / 0.7945 GB, free: 37.9 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.712e-05/1.296, allocations: 16 kB / 0.7945 GB, free: 37.88 MB / 494.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01191/1.308, allocations: 8.29 MB / 0.8026 GB, free: 29.57 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.07e-05/1.308, allocations: 61.64 kB / 0.8027 GB, free: 29.5 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.253e-05/1.308, allocations: 60 kB / 0.8028 GB, free: 29.45 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00239/1.311, allocations: 1 MB / 0.8037 GB, free: 28.45 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00396/1.315, allocations: 1.267 MB / 0.805 GB, free: 27.18 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01074/1.325, allocations: 8.719 MB / 0.8135 GB, free: 18.35 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005185/1.33, allocations: 355.7 kB / 0.8138 GB, free: 18 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007739/1.331, allocations: 275.9 kB / 0.8141 GB, free: 17.73 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.005217/1.336, allocations: 2.902 MB / 0.8169 GB, free: 14.81 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001152/1.338, allocations: 409.4 kB / 0.8173 GB, free: 14.41 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009754/1.347, allocations: 6.148 MB / 0.8233 GB, free: 8.207 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.92e-05/1.347, allocations: 40 kB / 0.8234 GB, free: 8.168 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.766e-05/1.347, allocations: 12 kB / 0.8234 GB, free: 8.156 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.778e-05/1.347, allocations: 23.92 kB / 0.8234 GB, free: 8.133 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02989/1.377, allocations: 14.64 MB / 0.8377 GB, free: 9.426 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.061e-05/1.377, allocations: 4 kB / 0.8377 GB, free: 9.422 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003296/1.381, allocations: 0.6948 MB / 0.8384 GB, free: 8.727 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00291/1.384, allocations: 0.8716 MB / 0.8392 GB, free: 7.852 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007401/1.384, allocations: 91.91 kB / 0.8393 GB, free: 7.762 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01325/1.398, allocations: 7.645 MB / 0.8468 GB, free: 0 / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.582e-05/1.398, allocations: 12.08 kB / 0.8468 GB, free: 15.98 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01992/1.418, allocations: 8.796 MB / 0.8554 GB, free: 7.066 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003411/1.421, allocations: 0.8641 MB / 0.8562 GB, free: 6.199 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001534/1.422, allocations: 83.98 kB / 0.8563 GB, free: 6.117 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003323/1.426, allocations: 183.8 kB / 0.8565 GB, free: 5.938 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000985/1.427, allocations: 291 kB / 0.8568 GB, free: 5.652 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003053/1.427, allocations: 124 kB / 0.8569 GB, free: 5.531 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.004865/1.432, allocations: 2.375 MB / 0.8592 GB, free: 3.164 MB / 0.5138 GB Notification: Performance of sort global known variables: time 8e-08/1.432, allocations: 0 / 0.8592 GB, free: 3.164 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.007147/1.439, allocations: 1.453 MB / 0.8606 GB, free: 1.711 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.01938/1.458, allocations: 9.498 MB / 0.8699 GB, free: 8.082 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01331/1.472, allocations: 6.23 MB / 0.876 GB, free: 1.832 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.057e-06/1.472, allocations: 0 / 0.876 GB, free: 1.832 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.006336/1.478, allocations: 2.888 MB / 0.8788 GB, free: 14.92 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004947/1.483, allocations: 0.8188 MB / 0.8796 GB, free: 14.12 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3343/1.817, allocations: 48.24 MB / 0.9267 GB, free: 168.7 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005643/1.823, allocations: 5.002 MB / 0.9316 GB, free: 166.8 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.00464/1.828, allocations: 1.599 MB / 0.9332 GB, free: 166.7 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003828/1.832, allocations: 2.772 MB / 0.9359 GB, free: 164.4 MB / 0.5607 GB Notification: Performance of SimCode: time 1.112e-06/1.832, allocations: 1.031 kB / 0.9359 GB, free: 164.4 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.17/2.001, allocations: 118 MB / 1.051 GB, free: 65.44 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.4/23.41, allocations: 8.047 kB / 1.051 GB, free: 65.43 MB / 0.5607 GB " [Timeout remaining time 636] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve4_fmu --startTime=0 --stopTime=200 --stepSize=0.1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve4.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 26.59831585478969] Failed to read output from testmodel.py, exit status != 0: 23.582535040099174 23.598482807 23.095613975 Calling exit ...