Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001294/0.001294, allocations: 109.5 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001413/0.001413, allocations: 181.9 kB / 23.72 MB, free: 4.699 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.414/1.414, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,fileNamePrefix="Modelica_4_0_0_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_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001576/0.001576, allocations: 43.94 kB / 370.5 MB, free: 9.906 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.282/0.2836, allocations: 52.19 MB / 422.6 MB, free: 14.58 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.01194/0.2955, allocations: 9.675 MB / 432.3 MB, free: 4.859 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006748/0.3023, allocations: 3.131 MB / 435.5 MB, free: 1.719 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001398/0.3037, allocations: 27.88 kB / 435.5 MB, free: 1.691 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001877/0.3056, allocations: 0.626 MB / 436.1 MB, free: 1.062 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001709/0.3073, allocations: 0.5776 MB / 436.7 MB, free: 492 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007463/0.308, allocations: 323.5 kB / 437 MB, free: 168 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002231/0.3102, allocations: 1.755 MB / 438.8 MB, free: 14.4 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007796/0.311, allocations: 453.4 kB / 439.2 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000997/0.312, allocations: 0.6966 MB / 439.9 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001113/0.3131, allocations: 0.7467 MB / 440.6 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002324/0.3134, allocations: 160 kB / 440.8 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003988/0.3138, allocations: 196 kB / 441 MB, free: 12.13 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002749/0.314, allocations: 338.8 kB / 441.3 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008293/0.3149, allocations: 0.8009 MB / 442.1 MB, free: 11 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002519/0.3174, allocations: 1.988 MB / 444.1 MB, free: 9 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.683e-06/0.3174, allocations: 3.938 kB / 444.1 MB, free: 8.996 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.3174, allocations: 0 / 444.1 MB, free: 8.996 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.488e-05/0.3174, allocations: 3.938 kB / 444.1 MB, free: 8.992 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.003581/0.321, allocations: 1.759 MB / 445.9 MB, free: 7.18 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.349e-05/0.3211, allocations: 8.031 kB / 445.9 MB, free: 7.172 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002023/0.3213, allocations: 164.9 kB / 446 MB, free: 7 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005922/0.3219, allocations: 207.9 kB / 446.2 MB, free: 6.797 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001539/0.3234, allocations: 0.7641 MB / 447 MB, free: 6.004 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001805/0.3236, allocations: 163.8 kB / 447.2 MB, free: 5.824 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001663/0.3237, allocations: 119.9 kB / 447.3 MB, free: 5.707 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00204/0.3258, allocations: 1.139 MB / 448.4 MB, free: 4.477 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.607e-05/0.3258, allocations: 3.953 kB / 448.4 MB, free: 4.473 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001048/0.3259, allocations: 52 kB / 448.5 MB, free: 4.422 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.516e-05/0.3259, allocations: 28 kB / 448.5 MB, free: 4.395 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001628/0.3276, allocations: 0.7612 MB / 449.3 MB, free: 3.629 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.006558/0.3341, allocations: 3.817 MB / 453.1 MB, free: 15.62 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001613/0.3357, allocations: 0.5455 MB / 453.6 MB, free: 15.07 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005113/0.3363, allocations: 249.5 kB / 453.9 MB, free: 14.82 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.334e-05/0.3363, allocations: 8.5 kB / 453.9 MB, free: 14.82 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006942/0.337, allocations: 298.1 kB / 454.2 MB, free: 14.51 MB / 366.1 MB Notification: Performance of pre-optimization done (n=62): time 3.156e-06/0.337, allocations: 0 / 454.2 MB, free: 14.51 MB / 366.1 MB Notification: Performance of matching and sorting (n=65): time 0.004959/0.342, allocations: 1.865 MB / 456 MB, free: 12.61 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002765/0.3422, allocations: 471.3 kB / 456.5 MB, free: 12.04 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001669/0.3439, allocations: 1.117 MB / 457.6 MB, free: 10.91 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.427e-05/0.344, allocations: 37.7 kB / 457.7 MB, free: 10.86 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006602/0.3447, allocations: 0.6599 MB / 458.3 MB, free: 10.2 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002783/0.3449, allocations: 242 kB / 458.6 MB, free: 9.957 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002963/0.3452, allocations: 198.8 kB / 458.7 MB, free: 9.758 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001801/0.3454, allocations: 345.9 kB / 459.1 MB, free: 9.414 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005451/0.346, allocations: 246.5 kB / 459.3 MB, free: 9.172 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009369/0.3469, allocations: 0.7134 MB / 460 MB, free: 8.254 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001497/0.3484, allocations: 0.9489 MB / 461 MB, free: 7.129 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.921e-06/0.3484, allocations: 0 / 461 MB, free: 7.129 MB / 366.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.002317/0.3507, allocations: 1.13 MB / 462.1 MB, free: 5.973 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.987e-05/0.3508, allocations: 75.8 kB / 462.2 MB, free: 5.887 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.269e-05/0.3508, allocations: 12 kB / 462.2 MB, free: 5.875 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006402/0.3515, allocations: 172.9 kB / 462.4 MB, free: 5.703 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007206/0.3522, allocations: 203.6 kB / 462.6 MB, free: 5.504 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004824/0.357, allocations: 3.687 MB / 466.3 MB, free: 1.59 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001112/0.3581, allocations: 64.08 kB / 466.3 MB, free: 1.527 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.157e-05/0.3582, allocations: 44 kB / 466.4 MB, free: 1.484 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.0005419/0.3587, allocations: 301.5 kB / 466.7 MB, free: 1.18 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002094/0.359, allocations: 127.2 kB / 466.8 MB, free: 1.055 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00157/0.3605, allocations: 0.7021 MB / 467.5 MB, free: 348 kB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.847e-06/0.3605, allocations: 8 kB / 467.5 MB, free: 340 kB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/0.3605, allocations: 0 / 467.5 MB, free: 340 kB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00144/0.362, allocations: 0.9551 MB / 468.4 MB, free: 15.27 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003331/0.3653, allocations: 1.76 MB / 470.2 MB, free: 13.43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.3e-06/0.3653, allocations: 224 / 470.2 MB, free: 13.43 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005047/0.3658, allocations: 111.8 kB / 470.3 MB, free: 13.32 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004725/0.3663, allocations: 129.6 kB / 470.4 MB, free: 13.19 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.232e-05/0.3663, allocations: 16 kB / 470.5 MB, free: 13.18 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003824/0.3702, allocations: 3.385 MB / 473.8 MB, free: 9.562 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.3702, allocations: 0 / 473.8 MB, free: 9.562 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002104/0.3723, allocations: 1.057 MB / 474.9 MB, free: 8.461 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006242/0.3729, allocations: 179.2 kB / 475.1 MB, free: 8.285 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000155/0.373, allocations: 16 kB / 475.1 MB, free: 8.27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006296/0.3737, allocations: 39.97 kB / 475.1 MB, free: 8.23 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001418/0.3738, allocations: 64.33 kB / 475.2 MB, free: 8.168 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.594e-05/0.3738, allocations: 16 kB / 475.2 MB, free: 8.152 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001114/0.375, allocations: 0.7484 MB / 476 MB, free: 7.398 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.375, allocations: 0 / 476 MB, free: 7.398 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001119/0.3761, allocations: 304 kB / 476.3 MB, free: 7.102 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.002432/0.3785, allocations: 1.643 MB / 477.9 MB, free: 5.402 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002172/0.3807, allocations: 1.069 MB / 479 MB, free: 4.285 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.154e-06/0.3807, allocations: 4 kB / 479 MB, free: 4.281 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009766/0.3817, allocations: 0.5354 MB / 479.5 MB, free: 3.723 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001529/0.3832, allocations: 334.6 kB / 479.8 MB, free: 3.398 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01581/0.399, allocations: 9.762 MB / 489.6 MB, free: 9.086 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007618/0.3998, allocations: 1.085 MB / 490.7 MB, free: 7.969 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006314/0.4004, allocations: 145.8 kB / 490.8 MB, free: 7.824 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006113/0.401, allocations: 475.3 kB / 491.3 MB, free: 7.359 MB / 398.1 MB Notification: Performance of SimCode: time 1.834e-06/0.401, allocations: 11.94 kB / 491.3 MB, free: 7.348 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07852/0.4795, allocations: 29.99 MB / 0.5091 GB, free: 9.75 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.09/15.57, allocations: 15.8 kB / 0.5091 GB, free: 9.738 MB / 430.1 MB " [Timeout remaining time 644] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Cooling/DCPM_Cooling.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable loadInertia.w in file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.csv. Warning: Get data of variable loadInertia.w from file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.csv failed! " [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 27.164403105998645]