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.001509/0.001509, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001659/0.001659, allocations: 213.6 kB / 23.73 MB, free: 4.164 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.419/1.419, allocations: 230.5 MB / 257.4 MB, free: 7.801 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.001954/0.001954, allocations: 59.89 kB / 377.7 MB, free: 2.809 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2455/0.2474, allocations: 53.41 MB / 431.2 MB, free: 6.602 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.01181/0.2592, allocations: 8.464 MB / 439.6 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005616/0.2648, allocations: 2.948 MB / 442.6 MB, free: 11.15 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0011/0.2659, allocations: 27.88 kB / 442.6 MB, free: 11.12 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001753/0.2677, allocations: 0.5628 MB / 443.2 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001687/0.2694, allocations: 0.5853 MB / 443.7 MB, free: 9.965 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008582/0.2702, allocations: 323.5 kB / 444.1 MB, free: 9.648 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002321/0.2726, allocations: 1.759 MB / 445.8 MB, free: 7.879 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007819/0.2733, allocations: 429.3 kB / 446.2 MB, free: 7.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001077/0.2744, allocations: 0.6928 MB / 446.9 MB, free: 6.734 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008495/0.2753, allocations: 0.6412 MB / 447.6 MB, free: 6.09 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002118/0.2755, allocations: 156 kB / 447.7 MB, free: 5.938 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003898/0.2759, allocations: 204 kB / 447.9 MB, free: 5.738 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002832/0.2762, allocations: 338.8 kB / 448.3 MB, free: 5.406 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006697/0.2768, allocations: 0.6572 MB / 448.9 MB, free: 4.746 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002238/0.2791, allocations: 2.004 MB / 450.9 MB, free: 2.734 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.2791, allocations: 0 / 450.9 MB, free: 2.734 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2791, allocations: 0 / 450.9 MB, free: 2.734 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.324e-05/0.2791, allocations: 0 / 450.9 MB, free: 2.734 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.003115/0.2822, allocations: 1.763 MB / 452.7 MB, free: 0.918 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.48e-05/0.2823, allocations: 11.98 kB / 452.7 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002017/0.2825, allocations: 164.9 kB / 452.9 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005671/0.283, allocations: 207.9 kB / 453.1 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001452/0.2845, allocations: 0.7641 MB / 453.8 MB, free: 15.73 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001806/0.2847, allocations: 175.8 kB / 454 MB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001578/0.2848, allocations: 107.9 kB / 454.1 MB, free: 15.44 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002143/0.287, allocations: 1.573 MB / 455.7 MB, free: 13.67 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.543e-05/0.287, allocations: 4 kB / 455.7 MB, free: 13.66 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.404e-05/0.2871, allocations: 48 kB / 455.7 MB, free: 13.62 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.339e-05/0.2871, allocations: 24 kB / 455.7 MB, free: 13.59 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001569/0.2887, allocations: 0.7574 MB / 456.5 MB, free: 12.84 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.005838/0.2945, allocations: 3.368 MB / 459.9 MB, free: 9.312 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001537/0.2961, allocations: 0.5417 MB / 460.4 MB, free: 8.766 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005109/0.2966, allocations: 243.4 kB / 460.6 MB, free: 8.527 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.556e-05/0.2966, allocations: 12.5 kB / 460.7 MB, free: 8.512 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006592/0.2973, allocations: 323.9 kB / 461 MB, free: 8.176 MB / 366.1 MB Notification: Performance of pre-optimization done (n=62): time 2.806e-06/0.2973, allocations: 0 / 461 MB, free: 8.176 MB / 366.1 MB Notification: Performance of matching and sorting (n=65): time 0.004735/0.302, allocations: 1.865 MB / 462.8 MB, free: 6.277 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003/0.3023, allocations: 483.3 kB / 463.3 MB, free: 5.695 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001684/0.304, allocations: 1.125 MB / 464.4 MB, free: 4.559 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.616e-05/0.3041, allocations: 41.7 kB / 464.5 MB, free: 4.512 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005962/0.3047, allocations: 0.6599 MB / 465.1 MB, free: 3.844 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002091/0.3049, allocations: 238 kB / 465.4 MB, free: 3.609 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002893/0.3052, allocations: 202.8 kB / 465.6 MB, free: 3.406 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000183/0.3053, allocations: 341.9 kB / 465.9 MB, free: 3.066 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006281/0.306, allocations: 301.8 kB / 466.2 MB, free: 2.758 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001227/0.3072, allocations: 1.173 MB / 467.4 MB, free: 1.266 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001479/0.3087, allocations: 0.945 MB / 468.3 MB, free: 152 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.973e-06/0.3087, allocations: 4 kB / 468.3 MB, free: 148 kB / 366.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.002365/0.3111, allocations: 1.196 MB / 469.5 MB, free: 14.91 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.833e-05/0.3111, allocations: 67.41 kB / 469.6 MB, free: 14.83 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.766e-05/0.3111, allocations: 8.5 kB / 469.6 MB, free: 14.82 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006065/0.3117, allocations: 173.5 kB / 469.8 MB, free: 14.65 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006842/0.3124, allocations: 199.7 kB / 470 MB, free: 14.45 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00452/0.3169, allocations: 3.665 MB / 473.6 MB, free: 10.57 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001226/0.3182, allocations: 59.92 kB / 473.7 MB, free: 10.51 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.598e-05/0.3183, allocations: 48.05 kB / 473.7 MB, free: 10.46 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.0005794/0.3188, allocations: 301.7 kB / 474 MB, free: 10.16 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002206/0.3191, allocations: 131.2 kB / 474.1 MB, free: 10.03 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001578/0.3206, allocations: 0.6943 MB / 474.8 MB, free: 9.32 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.105e-06/0.3207, allocations: 12 kB / 474.9 MB, free: 9.309 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.554e-06/0.3207, allocations: 4.109 kB / 474.9 MB, free: 9.305 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001457/0.3221, allocations: 0.9512 MB / 475.8 MB, free: 8.242 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003368/0.3255, allocations: 1.619 MB / 477.4 MB, free: 6.547 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.549e-06/0.3255, allocations: 0 / 477.4 MB, free: 6.547 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004823/0.326, allocations: 103.8 kB / 477.5 MB, free: 6.445 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004544/0.3264, allocations: 137.8 kB / 477.7 MB, free: 6.305 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.021e-05/0.3265, allocations: 12 kB / 477.7 MB, free: 6.293 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0037/0.3302, allocations: 3.345 MB / 481 MB, free: 2.723 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/0.3302, allocations: 4.031 kB / 481 MB, free: 2.719 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00199/0.3322, allocations: 1.061 MB / 482.1 MB, free: 1.617 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004968/0.3327, allocations: 179.2 kB / 482.3 MB, free: 1.441 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001449/0.3328, allocations: 20 kB / 482.3 MB, free: 1.422 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006226/0.3334, allocations: 39.97 kB / 482.3 MB, free: 1.383 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001316/0.3336, allocations: 60.33 kB / 482.4 MB, free: 1.324 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.951e-05/0.3336, allocations: 20.12 kB / 482.4 MB, free: 1.305 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00107/0.3347, allocations: 0.7445 MB / 483.1 MB, free: 0.5547 MB / 382.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3347, allocations: 0 / 483.1 MB, free: 0.5547 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001041/0.3357, allocations: 312 kB / 483.4 MB, free: 256 kB / 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.002419/0.3381, allocations: 1.646 MB / 485.1 MB, free: 14.55 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002232/0.3404, allocations: 1.118 MB / 486.2 MB, free: 13.36 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.531e-06/0.3404, allocations: 0 / 486.2 MB, free: 13.36 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001014/0.3414, allocations: 0.5369 MB / 486.7 MB, free: 12.8 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00157/0.343, allocations: 324 kB / 487.1 MB, free: 12.48 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01508/0.358, allocations: 9.98 MB / 497 MB, free: 1.914 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00055/0.3586, allocations: 0.4935 MB / 497.5 MB, free: 1.387 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005837/0.3592, allocations: 145.8 kB / 497.7 MB, free: 1.242 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005842/0.3597, allocations: 471.3 kB / 498.1 MB, free: 0.7812 MB / 398.1 MB Notification: Performance of SimCode: time 1.062e-06/0.3597, allocations: 0 / 498.1 MB, free: 0.7812 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0781/0.4378, allocations: 31.66 MB / 0.5174 GB, free: 1.566 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.29/14.73, allocations: 4.062 kB / 0.5174 GB, free: 1.562 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 658] Reference file matches [Calling sys.exit(0), Time elapsed: 26.26567503809929]