Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.001641/0.001641, allocations: 132.3 kB / 17.8 MB, free: 5.219 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.002013/0.002013, allocations: 206.6 kB / 20.75 MB, free: 2.273 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.531/1.531, allocations: 230.4 MB / 254 MB, free: 15.01 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00193/0.00193, allocations: 67.91 kB / 373 MB, free: 10.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1205/0.1224, allocations: 53.38 MB / 426.4 MB, free: 4.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.2837/0.4061, allocations: 9.652 MB / 436 MB, free: 6.176 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007274/0.4134, allocations: 3.148 MB / 439.2 MB, free: 4.641 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00214/0.4155, allocations: 31.12 kB / 439.2 MB, free: 4.633 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002434/0.418, allocations: 0.6124 MB / 439.8 MB, free: 4.328 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002987/0.4209, allocations: 0.5862 MB / 440.4 MB, free: 3.906 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00137/0.4223, allocations: 321.3 kB / 440.7 MB, free: 3.715 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003527/0.4258, allocations: 1.76 MB / 442.5 MB, free: 2.781 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001003/0.4268, allocations: 452.2 kB / 442.9 MB, free: 2.516 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001786/0.4286, allocations: 0.6974 MB / 443.6 MB, free: 2.176 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001971/0.4306, allocations: 0.7446 MB / 444.4 MB, free: 1.785 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005995/0.4312, allocations: 158.3 kB / 444.5 MB, free: 1.785 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001201/0.4324, allocations: 200.7 kB / 444.7 MB, free: 1.773 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003592/0.4328, allocations: 332.5 kB / 445 MB, free: 1.539 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001658/0.4344, allocations: 0.8033 MB / 445.8 MB, free: 1.047 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003755/0.4382, allocations: 1.989 MB / 447.8 MB, free: 276 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.993e-06/0.4382, allocations: 4.781 kB / 447.8 MB, free: 272 kB / 350.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.4382, allocations: 0 / 447.8 MB, free: 272 kB / 350.1 MB Notification: Performance of Transformations before backend: time 6.972e-05/0.4383, allocations: 0 / 447.8 MB, free: 272 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.005012/0.4433, allocations: 1.839 MB / 449.7 MB, free: 15.03 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.537e-05/0.4433, allocations: 9.938 kB / 449.7 MB, free: 15.03 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002736/0.4436, allocations: 164.3 kB / 449.8 MB, free: 14.92 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008413/0.4444, allocations: 202.5 kB / 450 MB, free: 14.84 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002135/0.4466, allocations: 0.8432 MB / 450.9 MB, free: 14.26 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002087/0.4468, allocations: 114.7 kB / 451 MB, free: 14.19 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00023/0.447, allocations: 111.9 kB / 451.1 MB, free: 14.15 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002834/0.4498, allocations: 1.146 MB / 452.3 MB, free: 13.54 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.983e-05/0.4499, allocations: 2.844 kB / 452.3 MB, free: 13.54 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001214/0.45, allocations: 48.22 kB / 452.3 MB, free: 13.5 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.36e-05/0.45, allocations: 26.06 kB / 452.3 MB, free: 13.5 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001999/0.452, allocations: 0.7598 MB / 453.1 MB, free: 13.23 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.008435/0.4605, allocations: 3.932 MB / 457 MB, free: 10.69 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001707/0.4622, allocations: 0.5506 MB / 457.6 MB, free: 10.41 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005513/0.4627, allocations: 240.6 kB / 457.8 MB, free: 10.29 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.203e-05/0.4628, allocations: 11.53 kB / 457.8 MB, free: 10.29 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006975/0.4635, allocations: 294.9 kB / 458.1 MB, free: 10.1 MB / 366.1 MB Notification: Performance of pre-optimization done (n=62): time 3.096e-06/0.4635, allocations: 4 kB / 458.1 MB, free: 10.1 MB / 366.1 MB Notification: Performance of matching and sorting (n=65): time 0.005851/0.4693, allocations: 2.097 MB / 460.2 MB, free: 8.727 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002823/0.4696, allocations: 481.9 kB / 460.7 MB, free: 8.156 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002045/0.4717, allocations: 1.098 MB / 461.8 MB, free: 7.547 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001666/0.4718, allocations: 40.14 kB / 461.8 MB, free: 7.508 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006994/0.4725, allocations: 0.6626 MB / 462.5 MB, free: 6.914 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003088/0.4728, allocations: 243.4 kB / 462.7 MB, free: 6.703 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003526/0.4732, allocations: 196.6 kB / 462.9 MB, free: 6.582 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002523/0.4734, allocations: 341.1 kB / 463.2 MB, free: 6.25 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006355/0.4741, allocations: 248.4 kB / 463.5 MB, free: 6.137 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00113/0.4752, allocations: 0.7132 MB / 464.2 MB, free: 5.395 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001722/0.4769, allocations: 0.9397 MB / 465.1 MB, free: 4.594 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.367e-05/0.4769, allocations: 3.312 kB / 465.1 MB, free: 4.594 MB / 366.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.002874/0.4798, allocations: 1.146 MB / 466.3 MB, free: 3.965 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.315e-05/0.4799, allocations: 66.28 kB / 466.4 MB, free: 3.898 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.926e-05/0.4799, allocations: 11.81 kB / 466.4 MB, free: 3.898 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007256/0.4807, allocations: 173.9 kB / 466.5 MB, free: 3.82 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007654/0.4814, allocations: 200.9 kB / 466.7 MB, free: 3.777 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005202/0.4866, allocations: 3.898 MB / 470.6 MB, free: 180 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001592/0.4882, allocations: 71.64 kB / 470.7 MB, free: 140 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001703/0.4884, allocations: 46.72 kB / 470.7 MB, free: 132 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.0007821/0.4892, allocations: 293.5 kB / 471 MB, free: 15.9 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000357/0.4895, allocations: 128.3 kB / 471.2 MB, free: 15.83 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00182/0.4914, allocations: 0.7014 MB / 471.9 MB, free: 15.42 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.139e-05/0.4914, allocations: 6.188 kB / 471.9 MB, free: 15.42 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/0.4914, allocations: 3.938 kB / 471.9 MB, free: 15.41 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001689/0.4931, allocations: 0.9496 MB / 472.8 MB, free: 14.62 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004202/0.4973, allocations: 1.791 MB / 474.6 MB, free: 13.34 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.644e-06/0.4973, allocations: 5.75 kB / 474.6 MB, free: 13.34 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005082/0.4978, allocations: 112.2 kB / 474.7 MB, free: 13.31 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005022/0.4983, allocations: 122.9 kB / 474.8 MB, free: 13.25 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.148e-05/0.4983, allocations: 15.88 kB / 474.9 MB, free: 13.24 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004273/0.5026, allocations: 3.584 MB / 478.4 MB, free: 9.82 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.189e-06/0.5026, allocations: 5.625 kB / 478.4 MB, free: 9.816 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002644/0.5053, allocations: 1.051 MB / 479.5 MB, free: 9.168 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009368/0.5062, allocations: 264.5 kB / 479.8 MB, free: 8.93 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003285/0.5065, allocations: 20.23 kB / 479.8 MB, free: 8.918 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008013/0.5073, allocations: 35.22 kB / 479.8 MB, free: 8.902 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001985/0.5075, allocations: 59.8 kB / 479.9 MB, free: 8.867 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.62e-05/0.5076, allocations: 20.69 kB / 479.9 MB, free: 8.863 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001428/0.509, allocations: 0.7456 MB / 480.6 MB, free: 8.441 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.509, allocations: 0 / 480.6 MB, free: 8.441 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001882/0.5109, allocations: 310.6 kB / 480.9 MB, free: 8.281 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.002778/0.5137, allocations: 1.625 MB / 482.6 MB, free: 6.602 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002453/0.5161, allocations: 1.068 MB / 483.6 MB, free: 5.477 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.593e-06/0.5161, allocations: 0 / 483.6 MB, free: 5.477 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001101/0.5172, allocations: 0.5334 MB / 484.2 MB, free: 4.918 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002116/0.5193, allocations: 335.3 kB / 484.5 MB, free: 4.613 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01822/0.5376, allocations: 9.765 MB / 494.3 MB, free: 10.3 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008835/0.5384, allocations: 1.082 MB / 495.3 MB, free: 9.191 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0007713/0.5392, allocations: 153.8 kB / 495.5 MB, free: 9.039 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006835/0.5399, allocations: 471.3 kB / 495.9 MB, free: 8.578 MB / 398.1 MB Notification: Performance of SimCode: time 2.464e-06/0.5399, allocations: 0 / 495.9 MB, free: 8.578 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08908/0.629, allocations: 29.32 MB / 0.513 GB, free: 11.61 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.59/15.22, allocations: 2.672 kB / 0.513 GB, free: 11.61 MB / 430.1 MB " [Timeout remaining time 645] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Cooling/DCPM_Cooling.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.csv. Warning: Get data of variable loadInertia.w from file Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.csv failed! " [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 26.22772313596215]