Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.0008404/0.0008404, allocations: 79.7 kB / 20.67 MB, free: 3.891 MB / 18.57 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.000869/0.000869, allocations: 170 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8807/0.8807, allocations: 177.1 MB / 204.2 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4_1_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_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.363e-06/1.363e-06, allocations: 0 / 324.6 MB, free: 15.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.031e-05/2.167e-05, allocations: 4.531 kB / 324.6 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.007079/0.007101, allocations: 8.473 MB / 333.1 MB, free: 7.395 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004686/0.01179, allocations: 2.972 MB / 336 MB, free: 4.414 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00098/0.01277, allocations: 31.88 kB / 336.1 MB, free: 4.383 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001169/0.01394, allocations: 0.5626 MB / 336.6 MB, free: 3.816 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001256/0.01519, allocations: 0.6161 MB / 337.2 MB, free: 3.195 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005567/0.01575, allocations: 319.4 kB / 337.6 MB, free: 2.883 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001538/0.01729, allocations: 1.843 MB / 339.4 MB, free: 1.035 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008393/0.01813, allocations: 421.2 kB / 339.8 MB, free: 0.6016 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00122/0.01935, allocations: 1.037 MB / 340.8 MB, free: 15.56 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005394/0.01989, allocations: 0.5452 MB / 341.4 MB, free: 15.01 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001324/0.02002, allocations: 160 kB / 341.5 MB, free: 14.86 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002655/0.02028, allocations: 195.9 kB / 341.7 MB, free: 14.66 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000169/0.02045, allocations: 338.7 kB / 342.1 MB, free: 14.33 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004025/0.02086, allocations: 0.5612 MB / 342.6 MB, free: 13.77 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001452/0.02231, allocations: 2.001 MB / 344.6 MB, free: 11.76 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.718e-06/0.02231, allocations: 0 / 344.6 MB, free: 11.76 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.163e-06/0.02231, allocations: 0 / 344.6 MB, free: 11.76 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.887e-05/0.02234, allocations: 4 kB / 344.6 MB, free: 11.76 MB / 314.7 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.002169/0.02451, allocations: 1.754 MB / 346.4 MB, free: 9.953 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.091e-05/0.02455, allocations: 8.031 kB / 346.4 MB, free: 9.945 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001347/0.02469, allocations: 168.9 kB / 346.6 MB, free: 9.77 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005845/0.02527, allocations: 207.8 kB / 346.8 MB, free: 9.566 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00102/0.02629, allocations: 0.7672 MB / 347.5 MB, free: 8.766 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001209/0.02641, allocations: 167.8 kB / 347.7 MB, free: 8.582 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001063/0.02652, allocations: 108.4 kB / 347.8 MB, free: 8.477 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001337/0.02786, allocations: 1.577 MB / 349.4 MB, free: 6.703 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.506e-05/0.02788, allocations: 0 / 349.4 MB, free: 6.703 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.023e-05/0.02794, allocations: 48 kB / 349.4 MB, free: 6.656 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.472e-05/0.02796, allocations: 28 kB / 349.5 MB, free: 6.629 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009956/0.02895, allocations: 0.7574 MB / 350.2 MB, free: 5.875 MB / 314.7 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.003834/0.03279, allocations: 3.367 MB / 353.6 MB, free: 2.348 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001186/0.03397, allocations: 0.5431 MB / 354.1 MB, free: 1.797 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000301/0.03427, allocations: 242.7 kB / 354.4 MB, free: 1.559 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.403e-05/0.03431, allocations: 8.5 kB / 354.4 MB, free: 1.547 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004097/0.03472, allocations: 323.9 kB / 354.7 MB, free: 1.211 MB / 314.7 MB Notification: Performance of pre-optimization done (n=62): time 2.765e-06/0.03472, allocations: 3.938 kB / 354.7 MB, free: 1.207 MB / 314.7 MB Notification: Performance of matching and sorting (n=65): time 0.002951/0.03767, allocations: 1.868 MB / 356.6 MB, free: 15.29 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000154/0.03782, allocations: 479.3 kB / 357 MB, free: 14.71 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001123/0.03895, allocations: 1.125 MB / 358.1 MB, free: 13.58 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.751e-05/0.03899, allocations: 41.7 kB / 358.2 MB, free: 13.53 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003968/0.03939, allocations: 0.6521 MB / 358.8 MB, free: 12.88 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001382/0.03953, allocations: 242 kB / 359.1 MB, free: 12.64 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001779/0.03971, allocations: 198.8 kB / 359.3 MB, free: 12.43 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.431e-05/0.0398, allocations: 345.9 kB / 359.6 MB, free: 12.09 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000339/0.04014, allocations: 293.9 kB / 359.9 MB, free: 11.79 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008761/0.04102, allocations: 1.177 MB / 361.1 MB, free: 10.29 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008135/0.04183, allocations: 0.9412 MB / 362 MB, free: 9.184 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/0.04183, allocations: 0 / 362 MB, free: 9.184 MB / 330.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.001254/0.04309, allocations: 1.2 MB / 363.2 MB, free: 7.945 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.338e-05/0.04313, allocations: 67.34 kB / 363.3 MB, free: 7.867 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.215e-05/0.04314, allocations: 12 kB / 363.3 MB, free: 7.855 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003733/0.04352, allocations: 164.4 kB / 363.5 MB, free: 7.691 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003529/0.04387, allocations: 207.7 kB / 363.7 MB, free: 7.488 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002673/0.04654, allocations: 3.646 MB / 367.3 MB, free: 3.621 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005245/0.04707, allocations: 64.08 kB / 367.4 MB, free: 3.559 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.274e-05/0.04711, allocations: 48 kB / 367.4 MB, free: 3.512 MB / 330.7 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.0006077/0.04772, allocations: 301.5 kB / 367.7 MB, free: 3.207 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.71e-05/0.04782, allocations: 127.2 kB / 367.8 MB, free: 3.082 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008585/0.04867, allocations: 0.6983 MB / 368.5 MB, free: 2.367 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.519e-06/0.04868, allocations: 8 kB / 368.5 MB, free: 2.359 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.334e-06/0.04868, allocations: 3.938 kB / 368.5 MB, free: 2.355 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007733/0.04945, allocations: 0.959 MB / 369.5 MB, free: 1.285 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0017/0.05116, allocations: 1.611 MB / 371.1 MB, free: 15.59 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.05116, allocations: 224 / 371.1 MB, free: 15.59 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002457/0.0514, allocations: 115.8 kB / 371.2 MB, free: 15.48 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002345/0.05164, allocations: 125 kB / 371.3 MB, free: 15.35 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.484e-05/0.05166, allocations: 16 kB / 371.4 MB, free: 15.34 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002207/0.05387, allocations: 3.358 MB / 374.7 MB, free: 11.75 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.05387, allocations: 4.031 kB / 374.7 MB, free: 11.75 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001067/0.05494, allocations: 1.045 MB / 375.8 MB, free: 10.66 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002654/0.05521, allocations: 187.1 kB / 376 MB, free: 10.48 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.767e-05/0.05528, allocations: 24.03 kB / 376 MB, free: 10.46 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003087/0.05559, allocations: 35.97 kB / 376 MB, free: 10.42 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.191e-05/0.05568, allocations: 56.39 kB / 376.1 MB, free: 10.36 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.122e-05/0.0557, allocations: 23.94 kB / 376.1 MB, free: 10.34 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0006652/0.05637, allocations: 0.7522 MB / 376.8 MB, free: 9.582 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.05637, allocations: 0 / 376.8 MB, free: 9.582 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006644/0.05703, allocations: 307.9 kB / 377.1 MB, free: 9.281 MB / 346.7 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.001358/0.05839, allocations: 1.631 MB / 378.8 MB, free: 7.602 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001176/0.05957, allocations: 1.119 MB / 379.9 MB, free: 6.418 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.05957, allocations: 0 / 379.9 MB, free: 6.418 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004926/0.06006, allocations: 0.5361 MB / 380.4 MB, free: 5.855 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007837/0.06085, allocations: 331 kB / 380.7 MB, free: 5.539 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01046/0.07131, allocations: 9.874 MB / 390.6 MB, free: 11.05 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003925/0.0717, allocations: 0.4974 MB / 391.1 MB, free: 10.52 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0005165/0.07222, allocations: 149.8 kB / 391.3 MB, free: 10.38 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004076/0.07262, allocations: 476.3 kB / 391.7 MB, free: 9.91 MB / 362.7 MB Notification: Performance of SimCode: time 1.914e-06/0.07263, allocations: 0 / 391.7 MB, free: 9.91 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04971/0.1223, allocations: 31.69 MB / 423.4 MB, free: 10.67 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.111/9.234, allocations: 7.141 kB / 423.4 MB, free: 10.67 MB / 394.7 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Cooling/DCPM_Cooling.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.csv. Warning: Get data of variable loadInertia.w from file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.csv failed! " [Timeout remaining time 658] "" Variables in the reference:time,armature.T,core.T,dcpm.la.i,loadInertia.phi,loadInertia.w Variables in the result:time,armature.T,core.T,dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.phi [Calling sys.exit(0), Time elapsed: 17.720161478035152]