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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001744/0.001744, allocations: 125.4 kB / 17.84 MB, free: 5.199 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001901/0.001901, allocations: 204.5 kB / 18.79 MB, free: 4.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.456/1.456, allocations: 230.4 MB / 250 MB, free: 9.023 MB / 206.1 MB 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.001879/0.001879, allocations: 63.84 kB / 366.9 MB, free: 7.516 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2842/0.286, allocations: 53.32 MB / 420.2 MB, free: 8.281 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.01259/0.2986, allocations: 9.647 MB / 429.8 MB, free: 14.6 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007534/0.3062, allocations: 3.161 MB / 433 MB, free: 11.43 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001517/0.3077, allocations: 27.94 kB / 433 MB, free: 11.4 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002067/0.3097, allocations: 0.6172 MB / 433.6 MB, free: 10.78 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002016/0.3118, allocations: 0.5854 MB / 434.2 MB, free: 10.19 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008849/0.3126, allocations: 319.4 kB / 434.5 MB, free: 9.879 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002794/0.3154, allocations: 1.762 MB / 436.3 MB, free: 8.102 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008482/0.3163, allocations: 456.9 kB / 436.7 MB, free: 7.629 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001202/0.3175, allocations: 0.6771 MB / 437.4 MB, free: 6.949 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00155/0.319, allocations: 0.7428 MB / 438.2 MB, free: 6.203 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003906/0.3194, allocations: 160 kB / 438.3 MB, free: 6.047 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007518/0.3202, allocations: 196 kB / 438.5 MB, free: 5.855 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000358/0.3205, allocations: 330.8 kB / 438.8 MB, free: 5.531 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00108/0.3216, allocations: 0.8087 MB / 439.6 MB, free: 4.719 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002791/0.3244, allocations: 1.984 MB / 441.6 MB, free: 2.727 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.002e-06/0.3244, allocations: 0 / 441.6 MB, free: 2.727 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.695e-06/0.3244, allocations: 0 / 441.6 MB, free: 2.727 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.734e-05/0.3244, allocations: 4 kB / 441.6 MB, free: 2.723 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.00377/0.3282, allocations: 1.838 MB / 443.5 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.973e-05/0.3283, allocations: 12.03 kB / 443.5 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002135/0.3285, allocations: 168.9 kB / 443.6 MB, free: 0.625 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006109/0.3291, allocations: 203.8 kB / 443.8 MB, free: 436 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001567/0.3307, allocations: 0.8375 MB / 444.7 MB, free: 15.55 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001577/0.3308, allocations: 112.4 kB / 444.8 MB, free: 15.43 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000168/0.331, allocations: 119.9 kB / 444.9 MB, free: 15.31 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001986/0.333, allocations: 1.142 MB / 446.1 MB, free: 14.08 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.601e-05/0.333, allocations: 8 kB / 446.1 MB, free: 14.07 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.495e-05/0.3331, allocations: 44 kB / 446.1 MB, free: 14.03 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.413e-05/0.3331, allocations: 24 kB / 446.1 MB, free: 14 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001618/0.3347, allocations: 0.7613 MB / 446.9 MB, free: 13.24 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.006039/0.3408, allocations: 3.931 MB / 450.8 MB, free: 9.113 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001549/0.3423, allocations: 0.5473 MB / 451.4 MB, free: 8.555 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005152/0.3428, allocations: 246.9 kB / 451.6 MB, free: 8.312 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.455e-05/0.3429, allocations: 12.55 kB / 451.6 MB, free: 8.301 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006369/0.3435, allocations: 291.1 kB / 451.9 MB, free: 8.008 MB / 366.1 MB Notification: Performance of pre-optimization done (n=62): time 2.285e-06/0.3435, allocations: 0 / 451.9 MB, free: 8.008 MB / 366.1 MB Notification: Performance of matching and sorting (n=65): time 0.00486/0.3484, allocations: 2.091 MB / 454 MB, free: 5.824 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002918/0.3487, allocations: 479.2 kB / 454.5 MB, free: 5.246 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001646/0.3503, allocations: 1.101 MB / 455.6 MB, free: 4.133 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.182e-05/0.3504, allocations: 41.7 kB / 455.6 MB, free: 4.086 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005962/0.351, allocations: 0.6599 MB / 456.3 MB, free: 3.418 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002206/0.3512, allocations: 246 kB / 456.5 MB, free: 3.176 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000305/0.3515, allocations: 210.8 kB / 456.7 MB, free: 2.961 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001924/0.3517, allocations: 345.9 kB / 457 MB, free: 2.617 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005437/0.3523, allocations: 242.5 kB / 457.3 MB, free: 2.383 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009806/0.3532, allocations: 0.7053 MB / 458 MB, free: 1.465 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001452/0.3547, allocations: 0.9453 MB / 458.9 MB, free: 360 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/0.3547, allocations: 7.938 kB / 458.9 MB, free: 352 kB / 366.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.002267/0.357, allocations: 1.142 MB / 460.1 MB, free: 15.17 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.949e-05/0.357, allocations: 67.39 kB / 460.2 MB, free: 15.09 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.685e-05/0.357, allocations: 12 kB / 460.2 MB, free: 15.08 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006083/0.3577, allocations: 173 kB / 460.3 MB, free: 14.91 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006706/0.3583, allocations: 207.6 kB / 460.5 MB, free: 14.71 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004718/0.363, allocations: 3.885 MB / 464.4 MB, free: 10.55 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009993/0.364, allocations: 59.92 kB / 464.5 MB, free: 10.49 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.626e-05/0.3641, allocations: 52.11 kB / 464.5 MB, free: 10.44 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.0005337/0.3647, allocations: 289.6 kB / 464.8 MB, free: 10.14 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001834/0.3648, allocations: 131.2 kB / 464.9 MB, free: 10.02 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001545/0.3664, allocations: 0.7153 MB / 465.7 MB, free: 9.281 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.168e-05/0.3664, allocations: 11.98 kB / 465.7 MB, free: 9.27 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.745e-06/0.3664, allocations: 0 / 465.7 MB, free: 9.27 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001462/0.3679, allocations: 0.9451 MB / 466.6 MB, free: 8.215 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003095/0.371, allocations: 1.782 MB / 468.4 MB, free: 6.355 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.737e-06/0.371, allocations: 3.984 kB / 468.4 MB, free: 6.352 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000495/0.3715, allocations: 99.89 kB / 468.5 MB, free: 6.254 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004374/0.3719, allocations: 132.1 kB / 468.6 MB, free: 6.121 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.153e-05/0.3719, allocations: 15.98 kB / 468.6 MB, free: 6.105 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003879/0.3758, allocations: 3.584 MB / 472.2 MB, free: 2.242 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.082e-06/0.3758, allocations: 7.969 kB / 472.2 MB, free: 2.234 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001969/0.3778, allocations: 1.051 MB / 473.3 MB, free: 1.137 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004479/0.3782, allocations: 260.2 kB / 473.5 MB, free: 0.8633 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001373/0.3784, allocations: 20.12 kB / 473.6 MB, free: 0.8438 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005853/0.379, allocations: 39.97 kB / 473.6 MB, free: 0.8047 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001507/0.3791, allocations: 64.34 kB / 473.7 MB, free: 0.7422 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.319e-05/0.3792, allocations: 23.98 kB / 473.7 MB, free: 0.7188 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001142/0.3803, allocations: 0.7406 MB / 474.4 MB, free: 15.97 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3803, allocations: 0 / 474.4 MB, free: 15.97 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001059/0.3814, allocations: 312 kB / 474.7 MB, free: 15.67 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.002385/0.3837, allocations: 1.628 MB / 476.4 MB, free: 13.99 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002163/0.3859, allocations: 1.069 MB / 477.4 MB, free: 12.87 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.553e-06/0.3859, allocations: 3.906 kB / 477.4 MB, free: 12.87 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001006/0.3869, allocations: 0.5362 MB / 478 MB, free: 12.3 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001411/0.3883, allocations: 330.7 kB / 478.3 MB, free: 11.99 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01573/0.404, allocations: 9.77 MB / 488.1 MB, free: 1.664 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008353/0.4049, allocations: 1.086 MB / 489.1 MB, free: 0.5469 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006115/0.4055, allocations: 149.8 kB / 489.3 MB, free: 408 kB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006232/0.4061, allocations: 467.3 kB / 489.7 MB, free: 15.94 MB / 414.1 MB Notification: Performance of SimCode: time 2.114e-06/0.4061, allocations: 4 kB / 489.7 MB, free: 15.93 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07503/0.4812, allocations: 29.47 MB / 0.5071 GB, free: 2.922 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.11/14.59, allocations: 8.062 kB / 0.5071 GB, free: 2.914 MB / 430.1 MB (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)