Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001809/0.001809, allocations: 110.5 kB / 21.23 MB, free: 0.6641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002152/0.002152, allocations: 212.6 kB / 24.54 MB, free: 4.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.475/1.475, allocations: 230.6 MB / 258.3 MB, free: 8.023 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001972/0.001972, allocations: 64.55 kB / 378.6 MB, free: 3.113 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3086/0.3106, allocations: 53.36 MB / 431.9 MB, free: 6.871 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.0127/0.3233, allocations: 9.697 MB / 441.6 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006616/0.3299, allocations: 3.162 MB / 444.8 MB, free: 9.969 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001458/0.3314, allocations: 31.88 kB / 444.8 MB, free: 9.938 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00193/0.3333, allocations: 0.6173 MB / 445.4 MB, free: 9.316 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001988/0.3353, allocations: 0.5815 MB / 446 MB, free: 8.73 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009396/0.3362, allocations: 323.5 kB / 446.3 MB, free: 8.414 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002892/0.3391, allocations: 1.765 MB / 448.1 MB, free: 6.641 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009466/0.3401, allocations: 453.3 kB / 448.5 MB, free: 6.168 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001354/0.3414, allocations: 0.6928 MB / 449.2 MB, free: 5.473 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001246/0.3427, allocations: 0.7467 MB / 450 MB, free: 4.723 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003134/0.343, allocations: 160 kB / 450.1 MB, free: 4.566 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005155/0.3435, allocations: 196 kB / 450.3 MB, free: 4.375 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000315/0.3438, allocations: 342.7 kB / 450.7 MB, free: 4.039 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001035/0.3449, allocations: 0.8087 MB / 451.5 MB, free: 3.227 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002892/0.3477, allocations: 1.984 MB / 453.5 MB, free: 1.234 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.344e-06/0.3478, allocations: 0 / 453.5 MB, free: 1.234 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.3478, allocations: 0 / 453.5 MB, free: 1.234 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.824e-05/0.3478, allocations: 0 / 453.5 MB, free: 1.234 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.004033/0.3518, allocations: 1.767 MB / 455.2 MB, free: 15.41 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.899e-05/0.3519, allocations: 16.02 kB / 455.2 MB, free: 15.4 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002259/0.3521, allocations: 161 kB / 455.4 MB, free: 15.23 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006666/0.3528, allocations: 207.9 kB / 455.6 MB, free: 15.03 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001751/0.3545, allocations: 0.7679 MB / 456.4 MB, free: 14.23 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001991/0.3547, allocations: 167.8 kB / 456.5 MB, free: 14.05 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001891/0.3549, allocations: 111.9 kB / 456.6 MB, free: 13.94 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002179/0.3571, allocations: 1.139 MB / 457.8 MB, free: 12.71 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.108e-05/0.3572, allocations: 7.984 kB / 457.8 MB, free: 12.7 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001127/0.3573, allocations: 48 kB / 457.8 MB, free: 12.65 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.59e-05/0.3573, allocations: 28 kB / 457.9 MB, free: 12.62 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001707/0.359, allocations: 0.7535 MB / 458.6 MB, free: 11.87 MB / 366.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007388/0.3664, allocations: 3.813 MB / 462.4 MB, free: 7.867 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001672/0.3681, allocations: 0.5501 MB / 463 MB, free: 7.309 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005414/0.3686, allocations: 246.6 kB / 463.2 MB, free: 7.066 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.29e-05/0.3687, allocations: 16.47 kB / 463.2 MB, free: 7.047 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006806/0.3693, allocations: 302.2 kB / 463.5 MB, free: 6.738 MB / 366.1 MB Notification: Performance of pre-optimization done (n=62): time 3.176e-06/0.3694, allocations: 0 / 463.5 MB, free: 6.738 MB / 366.1 MB Notification: Performance of matching and sorting (n=65): time 0.005253/0.3746, allocations: 1.861 MB / 465.4 MB, free: 4.844 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003583/0.375, allocations: 479.3 kB / 465.9 MB, free: 4.266 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001887/0.3768, allocations: 1.101 MB / 467 MB, free: 3.152 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.411e-05/0.3769, allocations: 45.7 kB / 467 MB, free: 3.102 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006436/0.3776, allocations: 0.656 MB / 467.7 MB, free: 2.438 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002715/0.3779, allocations: 250 kB / 467.9 MB, free: 2.191 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000328/0.3782, allocations: 190.9 kB / 468.1 MB, free: 2 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001876/0.3784, allocations: 345.9 kB / 468.4 MB, free: 1.656 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005908/0.379, allocations: 246.5 kB / 468.7 MB, free: 1.414 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001031/0.38, allocations: 0.7173 MB / 469.4 MB, free: 0.4922 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00157/0.3816, allocations: 0.9411 MB / 470.3 MB, free: 15.38 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.166e-06/0.3816, allocations: 8 kB / 470.3 MB, free: 15.37 MB / 382.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.002482/0.3841, allocations: 1.146 MB / 471.5 MB, free: 14.2 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.937e-05/0.3841, allocations: 63.41 kB / 471.6 MB, free: 14.12 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.881e-05/0.3842, allocations: 12.38 kB / 471.6 MB, free: 14.11 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006655/0.3848, allocations: 169.6 kB / 471.7 MB, free: 13.94 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007223/0.3855, allocations: 203.6 kB / 471.9 MB, free: 13.74 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005144/0.3907, allocations: 3.685 MB / 475.6 MB, free: 9.832 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00116/0.3918, allocations: 68.08 kB / 475.7 MB, free: 9.766 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001153/0.392, allocations: 51.97 kB / 475.7 MB, free: 9.715 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (112): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,9)} Notification: Performance of prepare postOptimizeDAE: time 0.000617/0.3926, allocations: 293.6 kB / 476 MB, free: 9.418 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002461/0.3928, allocations: 127.2 kB / 476.1 MB, free: 9.293 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001612/0.3944, allocations: 0.706 MB / 476.8 MB, free: 8.57 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.754e-06/0.3944, allocations: 4 kB / 476.9 MB, free: 8.566 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.101e-06/0.3944, allocations: 4.125 kB / 476.9 MB, free: 8.562 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001482/0.3959, allocations: 0.9551 MB / 477.8 MB, free: 7.496 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003353/0.3993, allocations: 1.756 MB / 479.6 MB, free: 5.664 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.879e-06/0.3993, allocations: 224 / 479.6 MB, free: 5.664 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004928/0.3998, allocations: 115.8 kB / 479.7 MB, free: 5.551 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00046/0.4002, allocations: 121.6 kB / 479.8 MB, free: 5.426 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.829e-05/0.4003, allocations: 12 kB / 479.8 MB, free: 5.414 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003962/0.4043, allocations: 3.388 MB / 483.2 MB, free: 1.801 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/0.4043, allocations: 4 kB / 483.2 MB, free: 1.797 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002186/0.4065, allocations: 1.057 MB / 484.3 MB, free: 0.6992 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005806/0.407, allocations: 179.2 kB / 484.4 MB, free: 0.5234 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002141/0.4072, allocations: 20 kB / 484.5 MB, free: 0.5039 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006683/0.4079, allocations: 35.97 kB / 484.5 MB, free: 480 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001814/0.4081, allocations: 64.33 kB / 484.6 MB, free: 416 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.17e-05/0.4081, allocations: 20.12 kB / 484.6 MB, free: 396 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001273/0.4094, allocations: 0.7484 MB / 485.3 MB, free: 15.63 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4094, allocations: 0 / 485.3 MB, free: 15.63 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001405/0.4108, allocations: 304 kB / 485.6 MB, free: 15.34 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.phi,armature.T,core.T) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002665/0.4135, allocations: 1.643 MB / 487.3 MB, free: 13.64 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002324/0.4158, allocations: 1.069 MB / 488.3 MB, free: 12.52 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.68e-06/0.4158, allocations: 0 / 488.3 MB, free: 12.52 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001053/0.4169, allocations: 0.5316 MB / 488.9 MB, free: 11.96 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00171/0.4186, allocations: 327.2 kB / 489.2 MB, free: 11.64 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01799/0.4366, allocations: 9.768 MB / 498.9 MB, free: 1.332 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008613/0.4374, allocations: 1.082 MB / 0.4883 GB, free: 228 kB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0007005/0.4381, allocations: 149.8 kB / 0.4885 GB, free: 76 kB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006447/0.4388, allocations: 471.3 kB / 0.4889 GB, free: 15.61 MB / 414.1 MB Notification: Performance of SimCode: time 1.673e-06/0.4388, allocations: 0 / 0.4889 GB, free: 15.61 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08809/0.5269, allocations: 30.01 MB / 0.5182 GB, free: 1.977 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.72/15.24, allocations: 4 kB / 0.5182 GB, free: 1.973 MB / 430.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.csv --start-time 0 --stop-time 25 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 18.535730036906898] Failed to read output from testmodel.py, exit status != 0: ['time', 'armature.T', 'core.T', 'dcpm.la.i', 'loadInertia.phi', 'loadInertia.w'] 15.363321632612497 15.390907141 15.038330987 Calling exit ...