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.001743/0.001743, allocations: 117.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001928/0.001928, allocations: 200.7 kB / 18.74 MB, free: 4.312 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.425/1.425, allocations: 227.7 MB / 247.2 MB, free: 10.16 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.001876/0.001876, allocations: 67.89 kB / 358.5 MB, free: 13.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3009/0.3028, allocations: 50.55 MB / 409.1 MB, free: 1.371 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.01168/0.3145, allocations: 9.615 MB / 418.7 MB, free: 7.715 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006747/0.3213, allocations: 3.146 MB / 421.8 MB, free: 4.562 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001462/0.3229, allocations: 23.94 kB / 421.9 MB, free: 4.539 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001877/0.3248, allocations: 0.5938 MB / 422.5 MB, free: 3.941 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001996/0.3268, allocations: 0.5619 MB / 423 MB, free: 3.375 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009278/0.3277, allocations: 315.5 kB / 423.3 MB, free: 3.066 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002667/0.3304, allocations: 1.766 MB / 425.1 MB, free: 1.285 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00104/0.3315, allocations: 0.6297 MB / 425.7 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001242/0.3327, allocations: 0.6732 MB / 426.4 MB, free: 15.95 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001135/0.3339, allocations: 0.7428 MB / 427.1 MB, free: 15.21 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003152/0.3342, allocations: 160 kB / 427.3 MB, free: 15.05 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005066/0.3347, allocations: 196 kB / 427.5 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003022/0.335, allocations: 334.8 kB / 427.8 MB, free: 14.53 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009625/0.336, allocations: 0.8009 MB / 428.6 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002661/0.3387, allocations: 1.984 MB / 430.6 MB, free: 11.73 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.3387, allocations: 0 / 430.6 MB, free: 11.73 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3387, allocations: 0 / 430.6 MB, free: 11.73 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.536e-05/0.3388, allocations: 8 kB / 430.6 MB, free: 11.73 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.003568/0.3424, allocations: 1.838 MB / 432.5 MB, free: 9.816 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.296e-05/0.3424, allocations: 12.03 kB / 432.5 MB, free: 9.805 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001981/0.3426, allocations: 164.9 kB / 432.6 MB, free: 9.633 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006008/0.3432, allocations: 207.9 kB / 432.8 MB, free: 9.43 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001466/0.3447, allocations: 0.8413 MB / 433.7 MB, free: 8.547 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000159/0.3449, allocations: 112.4 kB / 433.8 MB, free: 8.43 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000154/0.345, allocations: 119.9 kB / 433.9 MB, free: 8.312 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001951/0.347, allocations: 1.142 MB / 435 MB, free: 7.078 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.37e-05/0.3471, allocations: 4 kB / 435 MB, free: 7.074 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.721e-05/0.3472, allocations: 51.98 kB / 435.1 MB, free: 7.023 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.28e-05/0.3472, allocations: 24 kB / 435.1 MB, free: 7 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001549/0.3487, allocations: 0.7613 MB / 435.9 MB, free: 6.238 MB / 350.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.006211/0.355, allocations: 3.919 MB / 439.8 MB, free: 2.121 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001626/0.3566, allocations: 0.5821 MB / 440.4 MB, free: 1.527 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005334/0.3572, allocations: 270.9 kB / 440.6 MB, free: 1.262 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.294e-05/0.3572, allocations: 12.55 kB / 440.7 MB, free: 1.25 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000662/0.3579, allocations: 291.4 kB / 440.9 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of pre-optimization done (n=62): time 3.186e-06/0.3579, allocations: 0 / 440.9 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of matching and sorting (n=65): time 0.004889/0.3628, allocations: 2.11 MB / 443 MB, free: 14.75 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000274/0.3631, allocations: 475.2 kB / 443.5 MB, free: 14.18 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001584/0.3647, allocations: 1.101 MB / 444.6 MB, free: 13.06 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.507e-05/0.3648, allocations: 45.7 kB / 444.7 MB, free: 13.01 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005887/0.3654, allocations: 0.656 MB / 445.3 MB, free: 12.35 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002139/0.3656, allocations: 242 kB / 445.6 MB, free: 12.11 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002922/0.3659, allocations: 202.8 kB / 445.7 MB, free: 11.9 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001705/0.3661, allocations: 345.9 kB / 446.1 MB, free: 11.56 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005474/0.3666, allocations: 246.5 kB / 446.3 MB, free: 11.32 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009701/0.3676, allocations: 0.713 MB / 447 MB, free: 10.39 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00147/0.3691, allocations: 0.9491 MB / 448 MB, free: 9.277 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.093e-06/0.3691, allocations: 4 kB / 448 MB, free: 9.273 MB / 366.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.002543/0.3716, allocations: 1.142 MB / 449.1 MB, free: 8.105 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.938e-05/0.3718, allocations: 71.39 kB / 449.2 MB, free: 8.023 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.549e-05/0.3718, allocations: 12 kB / 449.2 MB, free: 8.012 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007017/0.3725, allocations: 165.7 kB / 449.4 MB, free: 7.844 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000691/0.3732, allocations: 207.6 kB / 449.6 MB, free: 7.641 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004698/0.3779, allocations: 3.907 MB / 453.5 MB, free: 3.461 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001139/0.3791, allocations: 59.92 kB / 453.5 MB, free: 3.402 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.76e-05/0.3792, allocations: 47.98 kB / 453.6 MB, free: 3.355 MB / 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.0005346/0.3797, allocations: 293.6 kB / 453.9 MB, free: 3.059 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001955/0.3799, allocations: 127.2 kB / 454 MB, free: 2.934 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001533/0.3814, allocations: 0.7115 MB / 454.7 MB, free: 2.203 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.134e-06/0.3815, allocations: 4 kB / 454.7 MB, free: 2.199 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.316e-06/0.3815, allocations: 0 / 454.7 MB, free: 2.199 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00146/0.3829, allocations: 0.9568 MB / 455.7 MB, free: 1.137 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00303/0.386, allocations: 1.79 MB / 457.5 MB, free: 15.26 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/0.386, allocations: 0 / 457.5 MB, free: 15.26 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004791/0.3865, allocations: 107.9 kB / 457.6 MB, free: 15.16 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004432/0.3869, allocations: 124.5 kB / 457.7 MB, free: 15.03 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.431e-05/0.387, allocations: 19.98 kB / 457.7 MB, free: 15.01 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003698/0.3907, allocations: 3.592 MB / 461.3 MB, free: 11.14 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.3907, allocations: 0 / 461.3 MB, free: 11.14 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002039/0.3928, allocations: 1.058 MB / 462.4 MB, free: 10.04 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000536/0.3933, allocations: 264.2 kB / 462.6 MB, free: 9.766 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001474/0.3935, allocations: 20 kB / 462.6 MB, free: 9.746 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006044/0.3941, allocations: 35.97 kB / 462.7 MB, free: 9.711 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001652/0.3943, allocations: 60.36 kB / 462.7 MB, free: 9.652 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.163e-05/0.3943, allocations: 23.98 kB / 462.8 MB, free: 9.629 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001107/0.3954, allocations: 0.7406 MB / 463.5 MB, free: 8.883 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.3954, allocations: 0 / 463.5 MB, free: 8.883 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001122/0.3966, allocations: 312 kB / 463.8 MB, free: 8.578 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.002409/0.399, allocations: 1.632 MB / 465.4 MB, free: 6.891 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002173/0.4012, allocations: 1.104 MB / 466.5 MB, free: 5.738 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.765e-06/0.4012, allocations: 7.844 kB / 466.5 MB, free: 5.73 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009754/0.4022, allocations: 0.548 MB / 467.1 MB, free: 5.16 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001627/0.4038, allocations: 337.1 kB / 467.4 MB, free: 4.836 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01597/0.4198, allocations: 9.774 MB / 477.2 MB, free: 10.51 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000775/0.4207, allocations: 1.086 MB / 478.3 MB, free: 9.391 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006616/0.4213, allocations: 145.8 kB / 478.4 MB, free: 9.246 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005913/0.4219, allocations: 470.7 kB / 478.9 MB, free: 8.789 MB / 398.1 MB Notification: Performance of SimCode: time 1.152e-06/0.4219, allocations: 4 kB / 478.9 MB, free: 8.785 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07721/0.4992, allocations: 29.12 MB / 0.4961 GB, free: 12.12 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.12/14.62, allocations: 3.953 kB / 0.4961 GB, free: 12.11 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)