Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.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.001204/0.001204, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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 0.9215/0.9215, allocations: 177.1 MB / 199.4 MB, free: 5.902 MB / 186.7 MB " [Timeout remaining time 179] 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.00119/0.00119, allocations: 152.6 kB / 256 MB, free: 13.31 MB / 250.7 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.02492/0.02492, allocations: 6.665 MB / 319 MB, free: 26.73 MB / 266.7 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.InductionMachines.IMC_withLosses,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.InductionMachines.IMC_withLosses,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.196e-06/3.196e-06, allocations: 4 kB / 445.4 MB, free: 37.59 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.587e-05/2.907e-05, allocations: 2.281 kB / 445.4 MB, free: 37.59 MB / 330.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_withLosses): time 0.01456/0.01459, allocations: 21.53 MB / 466.9 MB, free: 15.96 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.01465/0.02924, allocations: 7.905 MB / 474.8 MB, free: 8.027 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005176/0.03442, allocations: 214.9 kB / 475.1 MB, free: 7.816 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0105/0.04491, allocations: 8.267 MB / 483.3 MB, free: 15.52 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01182/0.05673, allocations: 3.147 MB / 486.5 MB, free: 12.36 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004951/0.06169, allocations: 1.825 MB / 488.3 MB, free: 10.55 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.01406/0.07575, allocations: 11.7 MB / 500 MB, free: 14.8 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02266/0.0984, allocations: 14.51 MB / 0.5024 GB, free: 152 kB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02226/0.1207, allocations: 8.901 MB / 0.5111 GB, free: 7.234 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01049/0.1311, allocations: 5.629 MB / 0.5166 GB, free: 1.594 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00446/0.1356, allocations: 1.715 MB / 0.5183 GB, free: 15.88 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006218/0.1418, allocations: 2.163 MB / 0.5204 GB, free: 13.71 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005301/0.1471, allocations: 3.464 MB / 0.5238 GB, free: 10.24 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00879/0.1559, allocations: 4.234 MB / 0.5279 GB, free: 6 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.2286/0.3845, allocations: 23.49 MB / 0.5509 GB, free: 43.77 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.533e-05/0.3845, allocations: 4.922 kB / 0.5509 GB, free: 43.77 MB / 410.7 MB Notification: Performance of FrontEnd: time 4.509e-06/0.3845, allocations: 0 / 0.5509 GB, free: 43.77 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0008966/0.3854, allocations: 0 / 0.5509 GB, free: 43.77 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2685 * Number of variables: 2685 Notification: Performance of Generate backend data structure: time 0.03467/0.4201, allocations: 13.46 MB / 0.564 GB, free: 40.35 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.506e-05/0.4201, allocations: 10.31 kB / 0.564 GB, free: 40.35 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006167/0.4263, allocations: 1.621 MB / 0.5656 GB, free: 40.2 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02071/0.447, allocations: 6.256 MB / 0.5717 GB, free: 39.59 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01367/0.4607, allocations: 7.379 MB / 0.5789 GB, free: 38.45 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006279/0.4613, allocations: 0.7262 MB / 0.5796 GB, free: 38.42 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004156/0.4655, allocations: 0.9532 MB / 0.5806 GB, free: 38.16 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0326/0.4981, allocations: 16.35 MB / 0.5965 GB, free: 24.4 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000199/0.4983, allocations: 19.95 kB / 0.5966 GB, free: 24.38 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001522/0.4998, allocations: 407.1 kB / 0.5969 GB, free: 24 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002998/0.5001, allocations: 0.5592 MB / 0.5975 GB, free: 23.44 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01977/0.5199, allocations: 15.09 MB / 0.6122 GB, free: 8.332 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05478/0.5746, allocations: 47.18 MB / 0.6583 GB, free: 9.133 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009018/0.5836, allocations: 8.536 MB / 0.6666 GB, free: 1.379 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003146/0.5868, allocations: 3.33 MB / 0.6699 GB, free: 14.05 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002461/0.587, allocations: 111.4 kB / 0.67 GB, free: 13.95 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.058e-05/0.5871, allocations: 85.8 kB / 0.6701 GB, free: 13.86 MB / 474.7 MB Notification: Performance of pre-optimization done (n=447): time 5.621e-06/0.5871, allocations: 0 / 0.6701 GB, free: 13.86 MB / 474.7 MB Notification: Performance of matching and sorting (n=452): time 0.03169/0.6188, allocations: 20.44 MB / 0.69 GB, free: 9.457 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.752e-05/0.6188, allocations: 98.95 kB / 0.6901 GB, free: 9.348 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005274/0.6241, allocations: 4.626 MB / 0.6946 GB, free: 4.699 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002053/0.6243, allocations: 104.4 kB / 0.6947 GB, free: 4.594 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001971/0.6263, allocations: 4.335 MB / 0.699 GB, free: 252 kB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000897/0.6272, allocations: 1.592 MB / 0.7005 GB, free: 14.67 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00159/0.6288, allocations: 1.196 MB / 0.7017 GB, free: 13.46 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 8.264e-05/0.6289, allocations: 304.9 kB / 0.702 GB, free: 13.17 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003148/0.632, allocations: 3.065 MB / 0.705 GB, free: 10.1 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004174/0.6362, allocations: 5.242 MB / 0.7101 GB, free: 3.91 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007556/0.6437, allocations: 8.875 MB / 0.7188 GB, free: 10.35 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.957e-05/0.6438, allocations: 20 kB / 0.7188 GB, free: 10.33 MB / 0.5105 GB Notification: Performance of matching and sorting (n=794) (initialization): time 0.01108/0.6549, allocations: 9.846 MB / 0.7284 GB, free: 0.918 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 4.168e-05/0.6549, allocations: 43.03 kB / 0.7284 GB, free: 0.8789 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.603e-05/0.655, allocations: 68 kB / 0.7285 GB, free: 0.8125 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002267/0.6572, allocations: 1.374 MB / 0.7299 GB, free: 15.43 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002462/0.6597, allocations: 1.397 MB / 0.7312 GB, free: 14.13 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01198/0.6717, allocations: 12.1 MB / 0.743 GB, free: 1.867 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003138/0.6748, allocations: 355.6 kB / 0.7434 GB, free: 1.52 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003655/0.6752, allocations: 300 kB / 0.7437 GB, free: 1.227 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 313 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (720): * Single equations (assignments): 717 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (14,54,45.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.1972/0.8724, allocations: 3.887 MB / 0.7475 GB, free: 197.3 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001088/0.8734, allocations: 485.6 kB / 0.7479 GB, free: 197.3 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008982/0.8824, allocations: 8.447 MB / 0.7562 GB, free: 195.2 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005836/0.8883, allocations: 6.203 MB / 0.7622 GB, free: 192.8 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.223e-05/0.8883, allocations: 15.66 kB / 0.7622 GB, free: 192.8 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.296e-05/0.8883, allocations: 22.78 kB / 0.7623 GB, free: 192.8 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01555/0.9038, allocations: 16.61 MB / 0.7785 GB, free: 184.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.274e-05/0.9039, allocations: 8 kB / 0.7785 GB, free: 184.1 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001535/0.9054, allocations: 0.8125 MB / 0.7793 GB, free: 183.4 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001684/0.9071, allocations: 1.257 MB / 0.7805 GB, free: 182.4 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001708/0.9072, allocations: 109.9 kB / 0.7806 GB, free: 182.3 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008063/0.9153, allocations: 11.03 MB / 0.7914 GB, free: 172.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.491e-06/0.9153, allocations: 11.94 kB / 0.7914 GB, free: 172.5 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009644/0.925, allocations: 11.16 MB / 0.8023 GB, free: 161.6 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00155/0.9265, allocations: 1.059 MB / 0.8033 GB, free: 160.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003506/0.9269, allocations: 88 kB / 0.8034 GB, free: 160.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00109/0.9279, allocations: 227.8 kB / 0.8036 GB, free: 160.5 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003971/0.9283, allocations: 355.2 kB / 0.804 GB, free: 160.1 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001698/0.9285, allocations: 140.8 kB / 0.8041 GB, free: 160 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002454/0.931, allocations: 3.108 MB / 0.8071 GB, free: 156.9 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.8e-07/0.931, allocations: 1.688 kB / 0.8071 GB, free: 156.9 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.003499/0.9345, allocations: 1.723 MB / 0.8088 GB, free: 155.2 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * Number of states: 4 (imc.inertiaRotor.w,imc.rotorCage.port_p.reference.gamma,loadInertia.phi,PI.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (417): * Single equations (assignments): 414 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (14,54,43.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.009921/0.9444, allocations: 12.19 MB / 0.8207 GB, free: 143.1 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.007489/0.9519, allocations: 7.656 MB / 0.8282 GB, free: 135.4 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 8.075e-06/0.9519, allocations: 4 kB / 0.8282 GB, free: 135.4 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.003306/0.9552, allocations: 3.673 MB / 0.8318 GB, free: 131.7 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002977/0.9582, allocations: 1.061 MB / 0.8328 GB, free: 130.6 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06662/1.025, allocations: 60.82 MB / 0.8922 GB, free: 67.28 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004499/1.029, allocations: 6.081 MB / 0.8982 GB, free: 61.16 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.003547/1.033, allocations: 2.115 MB / 0.9002 GB, free: 59.04 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002882/1.036, allocations: 3.581 MB / 0.9037 GB, free: 55.46 MB / 0.5261 GB Notification: Performance of SimCode: time 1.152e-06/1.036, allocations: 8 kB / 0.9037 GB, free: 55.45 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3458/1.381, allocations: 142.8 MB / 1.043 GB, free: 132.5 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.81/14.19, allocations: 15.48 kB / 1.043 GB, free: 132.5 MB / 0.5261 GB " [Timeout remaining time 646] (rm -f HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.pipe ; mkfifo HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.pipe >> ../files/HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.InductionMachines.IMC_withLosses_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 HanserModelica_HanserModelica_InductionMachines_IMC_withLosses.fmu > HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 19.716277765110135] Failed to read output from testmodel.py, exit status != 0: 14.350641504861414 14.361854271 13.975255747 Calling exit ...