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.00134/0.00134, allocations: 120.2 kB / 18.5 MB, free: 4.578 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.00134/0.00134, allocations: 205 kB / 21.45 MB, free: 1.629 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.455/1.455, allocations: 230.5 MB / 254.8 MB, free: 15.12 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.001943/0.001943, allocations: 75.83 kB / 373.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1057/0.1076, allocations: 53.32 MB / 427 MB, free: 4.785 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.2358/0.3434, allocations: 9.646 MB / 436.7 MB, free: 6.316 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005956/0.3494, allocations: 3.156 MB / 439.8 MB, free: 4.777 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00182/0.3512, allocations: 34.41 kB / 439.9 MB, free: 4.766 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001935/0.3531, allocations: 0.6063 MB / 440.5 MB, free: 4.5 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002605/0.3557, allocations: 0.5894 MB / 441.1 MB, free: 4.121 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001039/0.3568, allocations: 320.5 kB / 441.4 MB, free: 3.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002925/0.3597, allocations: 1.769 MB / 443.1 MB, free: 2.992 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008265/0.3605, allocations: 453.8 kB / 443.6 MB, free: 2.723 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001452/0.362, allocations: 0.6898 MB / 444.3 MB, free: 2.391 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001267/0.3632, allocations: 0.7452 MB / 445 MB, free: 2 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003172/0.3635, allocations: 158.5 kB / 445.2 MB, free: 2 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007586/0.3643, allocations: 195.8 kB / 445.4 MB, free: 1.992 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002551/0.3646, allocations: 332.4 kB / 445.7 MB, free: 1.758 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001001/0.3656, allocations: 0.8075 MB / 446.5 MB, free: 1.262 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003102/0.3687, allocations: 1.985 MB / 448.5 MB, free: 500 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.564e-06/0.3687, allocations: 5.156 kB / 448.5 MB, free: 496 kB / 350.1 MB Notification: Performance of FrontEnd: time 3.096e-06/0.3687, allocations: 0 / 448.5 MB, free: 496 kB / 350.1 MB Notification: Performance of Transformations before backend: time 5.767e-05/0.3687, allocations: 1.125 kB / 448.5 MB, free: 496 kB / 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.004517/0.3732, allocations: 1.839 MB / 450.3 MB, free: 15.25 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.294e-05/0.3733, allocations: 9.75 kB / 450.3 MB, free: 15.25 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002691/0.3736, allocations: 167.7 kB / 450.5 MB, free: 15.14 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008066/0.3744, allocations: 205.6 kB / 450.7 MB, free: 15.05 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00177/0.3761, allocations: 0.8402 MB / 451.5 MB, free: 14.48 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001613/0.3763, allocations: 115.3 kB / 451.6 MB, free: 14.41 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001933/0.3765, allocations: 112.7 kB / 451.8 MB, free: 14.37 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002294/0.3788, allocations: 1.141 MB / 452.9 MB, free: 13.76 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.124e-05/0.3788, allocations: 11.09 kB / 452.9 MB, free: 13.75 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000103/0.3789, allocations: 42.88 kB / 453 MB, free: 13.72 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.856e-05/0.379, allocations: 26.09 kB / 453 MB, free: 13.72 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00169/0.3807, allocations: 0.7641 MB / 453.7 MB, free: 13.45 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.007093/0.3877, allocations: 3.923 MB / 457.7 MB, free: 10.96 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001576/0.3893, allocations: 0.5558 MB / 458.2 MB, free: 10.67 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005326/0.3899, allocations: 246.8 kB / 458.5 MB, free: 10.55 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.809e-05/0.3899, allocations: 8.375 kB / 458.5 MB, free: 10.55 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006485/0.3906, allocations: 291.1 kB / 458.8 MB, free: 10.37 MB / 366.1 MB Notification: Performance of pre-optimization done (n=62): time 3.958e-06/0.3906, allocations: 4.609 kB / 458.8 MB, free: 10.37 MB / 366.1 MB Notification: Performance of matching and sorting (n=65): time 0.005347/0.3959, allocations: 2.092 MB / 460.9 MB, free: 9 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003012/0.3962, allocations: 481.3 kB / 461.3 MB, free: 8.43 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001827/0.398, allocations: 1.098 MB / 462.4 MB, free: 7.82 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.616e-05/0.3981, allocations: 43.11 kB / 462.5 MB, free: 7.777 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006658/0.3988, allocations: 0.6673 MB / 463.1 MB, free: 7.18 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002461/0.399, allocations: 238.8 kB / 463.4 MB, free: 6.973 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003155/0.3994, allocations: 200.5 kB / 463.6 MB, free: 6.848 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001851/0.3995, allocations: 342.5 kB / 463.9 MB, free: 6.516 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005776/0.4001, allocations: 252 kB / 464.1 MB, free: 6.398 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001028/0.4011, allocations: 0.7099 MB / 464.8 MB, free: 5.66 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001532/0.4027, allocations: 0.9347 MB / 465.8 MB, free: 4.863 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.325e-06/0.4027, allocations: 3.156 kB / 465.8 MB, free: 4.863 MB / 366.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.002488/0.4052, allocations: 1.151 MB / 466.9 MB, free: 4.23 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.974e-05/0.4052, allocations: 62.31 kB / 467 MB, free: 4.168 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.969e-05/0.4053, allocations: 11.5 kB / 467 MB, free: 4.168 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006421/0.4059, allocations: 174.4 kB / 467.2 MB, free: 4.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007227/0.4066, allocations: 204.2 kB / 467.4 MB, free: 4.043 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004853/0.4115, allocations: 3.89 MB / 471.3 MB, free: 460 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001444/0.4129, allocations: 68.06 kB / 471.3 MB, free: 424 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001034/0.413, allocations: 49.56 kB / 471.4 MB, free: 412 kB / 366.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.0006483/0.4137, allocations: 297.1 kB / 471.7 MB, free: 180 kB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000249/0.4139, allocations: 128.9 kB / 471.8 MB, free: 112 kB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001663/0.4156, allocations: 0.7073 MB / 472.5 MB, free: 15.69 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.446e-06/0.4156, allocations: 6.188 kB / 472.5 MB, free: 15.69 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.4156, allocations: 0 / 472.5 MB, free: 15.69 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001561/0.4172, allocations: 0.9455 MB / 473.5 MB, free: 14.91 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00377/0.4209, allocations: 1.798 MB / 475.3 MB, free: 13.61 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.25e-06/0.4209, allocations: 0 / 475.3 MB, free: 13.61 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004865/0.4214, allocations: 106.7 kB / 475.4 MB, free: 13.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004384/0.4219, allocations: 128.5 kB / 475.5 MB, free: 13.52 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.226e-05/0.4219, allocations: 17.38 kB / 475.5 MB, free: 13.51 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003996/0.4259, allocations: 3.588 MB / 479.1 MB, free: 10.09 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.274e-06/0.4259, allocations: 6.75 kB / 479.1 MB, free: 10.09 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002265/0.4282, allocations: 1.047 MB / 480.1 MB, free: 9.438 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007142/0.4289, allocations: 262.7 kB / 480.4 MB, free: 9.199 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002024/0.4291, allocations: 22.7 kB / 480.4 MB, free: 9.184 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006443/0.4297, allocations: 35.59 kB / 480.5 MB, free: 9.168 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001738/0.4299, allocations: 58.12 kB / 480.5 MB, free: 9.137 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.584e-05/0.43, allocations: 20.52 kB / 480.5 MB, free: 9.129 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001246/0.4312, allocations: 0.7507 MB / 481.3 MB, free: 8.703 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4312, allocations: 0 / 481.3 MB, free: 8.703 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001382/0.4326, allocations: 309.8 kB / 481.6 MB, free: 8.566 MB / 382.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.002555/0.4351, allocations: 1.625 MB / 483.2 MB, free: 6.891 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002292/0.4374, allocations: 1.06 MB / 484.3 MB, free: 5.773 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.823e-06/0.4374, allocations: 4 kB / 484.3 MB, free: 5.77 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001023/0.4385, allocations: 0.5371 MB / 484.8 MB, free: 5.207 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001745/0.4402, allocations: 335.8 kB / 485.1 MB, free: 4.902 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01706/0.4573, allocations: 9.765 MB / 494.9 MB, free: 10.6 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008792/0.4581, allocations: 1.078 MB / 496 MB, free: 9.488 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0007558/0.4589, allocations: 149.8 kB / 496.1 MB, free: 9.34 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007278/0.4596, allocations: 471.3 kB / 496.6 MB, free: 8.879 MB / 398.1 MB Notification: Performance of SimCode: time 1.934e-06/0.4596, allocations: 0 / 496.6 MB, free: 8.879 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08062/0.5402, allocations: 29.34 MB / 0.5136 GB, free: 11.97 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.16/14.71, allocations: 11.94 kB / 0.5136 GB, free: 11.96 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: 17.998271241318434] Failed to read output from testmodel.py, exit status != 0: ['time', 'armature.T', 'core.T', 'dcpm.la.i', 'loadInertia.phi', 'loadInertia.w'] 14.820946434047073 14.843791268 14.470839384 Calling exit ...