Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001766/0.001766, allocations: 109.6 kB / 21.18 MB, free: 0.7188 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002061/0.002061, allocations: 216.7 kB / 24.49 MB, free: 4.09 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.464/1.464, allocations: 207.6 MB / 235.3 MB, free: 10.01 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001867/0.001867, allocations: 63.91 kB / 347.2 MB, free: 10.02 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2801/0.282, allocations: 49.16 MB / 396.4 MB, free: 9.191 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.01/0.292, allocations: 9.616 MB / 406 MB, free: 2.328 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006129/0.2981, allocations: 3.141 MB / 409.1 MB, free: 20 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001862/0.3, allocations: 34.06 kB / 409.2 MB, free: 8 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002208/0.3022, allocations: 0.6092 MB / 409.8 MB, free: 15.68 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002857/0.3051, allocations: 0.5861 MB / 410.4 MB, free: 15.26 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001308/0.3064, allocations: 327.8 kB / 410.7 MB, free: 15.06 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003338/0.3097, allocations: 1.759 MB / 412.4 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001051/0.3108, allocations: 450.2 kB / 412.9 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001708/0.3125, allocations: 0.6921 MB / 413.6 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001618/0.3141, allocations: 0.7511 MB / 414.3 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004235/0.3145, allocations: 158.4 kB / 414.5 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007901/0.3153, allocations: 197.6 kB / 414.7 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003647/0.3157, allocations: 330.8 kB / 415 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00133/0.317, allocations: 0.8133 MB / 415.8 MB, free: 12.26 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003042/0.32, allocations: 1.984 MB / 417.8 MB, free: 10.77 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.32, allocations: 0 / 417.8 MB, free: 10.77 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3201, allocations: 0 / 417.8 MB, free: 10.77 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.933e-05/0.3201, allocations: 1.562 kB / 417.8 MB, free: 10.77 MB / 334.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.004651/0.3248, allocations: 1.769 MB / 419.6 MB, free: 9.441 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.459e-05/0.3248, allocations: 17.23 kB / 419.6 MB, free: 9.434 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002744/0.3251, allocations: 161.5 kB / 419.7 MB, free: 9.301 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008663/0.326, allocations: 206.7 kB / 419.9 MB, free: 9.203 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002137/0.3281, allocations: 0.7645 MB / 420.7 MB, free: 8.609 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002419/0.3284, allocations: 168.4 kB / 420.9 MB, free: 8.473 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002672/0.3286, allocations: 119.8 kB / 421 MB, free: 8.426 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002453/0.3311, allocations: 1.144 MB / 422.1 MB, free: 7.641 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.374e-05/0.3311, allocations: 1.375 kB / 422.1 MB, free: 7.641 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000107/0.3312, allocations: 50.94 kB / 422.2 MB, free: 7.602 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.162e-05/0.3312, allocations: 26.12 kB / 422.2 MB, free: 7.602 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001781/0.333, allocations: 0.7579 MB / 423 MB, free: 7.234 MB / 334.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.008086/0.3411, allocations: 3.806 MB / 426.8 MB, free: 4.152 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001736/0.3429, allocations: 0.5575 MB / 427.3 MB, free: 3.859 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005668/0.3434, allocations: 243.5 kB / 427.6 MB, free: 3.738 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.872e-05/0.3435, allocations: 15.23 kB / 427.6 MB, free: 3.73 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006663/0.3441, allocations: 292 kB / 427.9 MB, free: 3.473 MB / 334.1 MB Notification: Performance of pre-optimization done (n=62): time 3.547e-06/0.3441, allocations: 0 / 427.9 MB, free: 3.473 MB / 334.1 MB Notification: Performance of matching and sorting (n=65): time 0.005708/0.3499, allocations: 1.869 MB / 429.7 MB, free: 1.566 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003291/0.3502, allocations: 483.2 kB / 430.2 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002045/0.3522, allocations: 1.105 MB / 431.3 MB, free: 15.86 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001613/0.3524, allocations: 41.7 kB / 431.3 MB, free: 15.82 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006567/0.353, allocations: 0.656 MB / 432 MB, free: 15.15 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003048/0.3534, allocations: 242 kB / 432.2 MB, free: 14.91 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003236/0.3537, allocations: 194.8 kB / 432.4 MB, free: 14.72 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001708/0.3538, allocations: 349.9 kB / 432.8 MB, free: 14.37 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005967/0.3544, allocations: 242.5 kB / 433 MB, free: 14.13 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009911/0.3554, allocations: 0.7174 MB / 433.7 MB, free: 13.21 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001563/0.357, allocations: 0.9525 MB / 434.7 MB, free: 12.08 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.959e-06/0.357, allocations: 4 kB / 434.7 MB, free: 12.08 MB / 350.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.00253/0.3595, allocations: 1.134 MB / 435.8 MB, free: 10.92 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.064e-05/0.3596, allocations: 71.39 kB / 435.9 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.462e-05/0.3596, allocations: 12 kB / 435.9 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000673/0.3603, allocations: 163.2 kB / 436.1 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007571/0.3611, allocations: 203.6 kB / 436.3 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005122/0.3662, allocations: 3.705 MB / 440 MB, free: 6.527 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001361/0.3676, allocations: 59.92 kB / 440 MB, free: 6.469 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001308/0.3677, allocations: 44 kB / 440.1 MB, free: 6.426 MB / 350.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.0006412/0.3683, allocations: 297.7 kB / 440.4 MB, free: 6.125 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003173/0.3686, allocations: 131.2 kB / 440.5 MB, free: 5.996 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001726/0.3704, allocations: 0.6983 MB / 441.2 MB, free: 5.277 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.058e-05/0.3704, allocations: 4 kB / 441.2 MB, free: 5.273 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.163e-06/0.3704, allocations: 4 kB / 441.2 MB, free: 5.27 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001548/0.3719, allocations: 0.9473 MB / 442.1 MB, free: 4.215 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004108/0.376, allocations: 1.764 MB / 443.9 MB, free: 2.379 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.073e-05/0.3761, allocations: 12.06 kB / 443.9 MB, free: 2.367 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000511/0.3766, allocations: 107.8 kB / 444 MB, free: 2.262 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004966/0.3771, allocations: 129.8 kB / 444.1 MB, free: 2.129 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.724e-05/0.3771, allocations: 16 kB / 444.2 MB, free: 2.113 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004104/0.3812, allocations: 3.369 MB / 447.5 MB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.641e-06/0.3812, allocations: 8.125 kB / 447.5 MB, free: 14.51 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002371/0.3836, allocations: 1.053 MB / 448.6 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000835/0.3844, allocations: 187.1 kB / 448.8 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003104/0.3848, allocations: 12 kB / 448.8 MB, free: 13.22 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007713/0.3855, allocations: 43.97 kB / 448.8 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000194/0.3857, allocations: 64.27 kB / 448.9 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.461e-05/0.3858, allocations: 20 kB / 448.9 MB, free: 13.09 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001227/0.387, allocations: 0.7406 MB / 449.6 MB, free: 12.35 MB / 366.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.387, allocations: 0 / 449.6 MB, free: 12.35 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001479/0.3885, allocations: 312 kB / 450 MB, free: 12.04 MB / 366.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.00258/0.391, allocations: 1.631 MB / 451.6 MB, free: 10.35 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002377/0.3934, allocations: 1.057 MB / 452.6 MB, free: 9.25 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.985e-06/0.3934, allocations: 384 / 452.6 MB, free: 9.25 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001118/0.3946, allocations: 0.535 MB / 453.2 MB, free: 8.688 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002169/0.3967, allocations: 325.2 kB / 453.5 MB, free: 8.367 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01837/0.4151, allocations: 9.775 MB / 463.3 MB, free: 14.04 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008461/0.4159, allocations: 1.085 MB / 464.4 MB, free: 12.91 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006563/0.4166, allocations: 145.8 kB / 464.5 MB, free: 12.77 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006402/0.4172, allocations: 471.3 kB / 465 MB, free: 12.31 MB / 382.1 MB Notification: Performance of SimCode: time 1.152e-06/0.4172, allocations: 3.938 kB / 465 MB, free: 12.3 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08732/0.5046, allocations: 30.02 MB / 495 MB, free: 14.2 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.39/15.89, allocations: 15.94 kB / 495 MB, free: 14.18 MB / 414.1 MB " [Timeout remaining time 644] (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Cooling/DCPM_Cooling.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.csv. Warning: Get data of variable loadInertia.w from file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.csv failed! " [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 26.742588659995818]