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.0008842/0.0008842, allocations: 83.69 kB / 20.67 MB, free: 3.887 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.00142/0.00142, allocations: 170 kB / 23.95 MB, free: 0.6094 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.8594/0.8594, allocations: 177.1 MB / 204.3 MB, free: 5.75 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.553e-06/1.553e-06, allocations: 0 / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.921e-05/2.076e-05, allocations: 2.281 kB / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.006543/0.006564, allocations: 8.473 MB / 333.1 MB, free: 7.418 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003776/0.01034, allocations: 2.968 MB / 336 MB, free: 4.441 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004942/0.01083, allocations: 35.81 kB / 336.1 MB, free: 4.406 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009704/0.0118, allocations: 0.5626 MB / 336.6 MB, free: 3.84 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001003/0.01281, allocations: 0.6123 MB / 337.2 MB, free: 3.223 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004556/0.01326, allocations: 327.4 kB / 337.6 MB, free: 2.902 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001227/0.01449, allocations: 1.843 MB / 339.4 MB, free: 1.051 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004394/0.01493, allocations: 421.2 kB / 339.8 MB, free: 0.6172 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007488/0.01568, allocations: 1.037 MB / 340.9 MB, free: 15.57 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004346/0.01611, allocations: 0.5374 MB / 341.4 MB, free: 15.04 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001218/0.01623, allocations: 160 kB / 341.5 MB, free: 14.88 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002099/0.01644, allocations: 203.9 kB / 341.7 MB, free: 14.68 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000155/0.0166, allocations: 338.7 kB / 342.1 MB, free: 14.35 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003552/0.01695, allocations: 0.5534 MB / 342.6 MB, free: 13.79 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001515/0.01847, allocations: 2.009 MB / 344.6 MB, free: 11.78 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.585e-06/0.01847, allocations: 0 / 344.6 MB, free: 11.78 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.01847, allocations: 0 / 344.6 MB, free: 11.78 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.233e-05/0.01849, allocations: 0 / 344.6 MB, free: 11.78 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.00178/0.02027, allocations: 1.755 MB / 346.4 MB, free: 9.969 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.745e-05/0.0203, allocations: 8.031 kB / 346.4 MB, free: 9.961 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001282/0.02043, allocations: 164.9 kB / 346.6 MB, free: 9.789 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003029/0.02073, allocations: 203.9 kB / 346.8 MB, free: 9.59 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008854/0.02162, allocations: 0.7749 MB / 347.5 MB, free: 8.781 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000104/0.02172, allocations: 171.8 kB / 347.7 MB, free: 8.594 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001029/0.02183, allocations: 108.4 kB / 347.8 MB, free: 8.488 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00123/0.02306, allocations: 1.573 MB / 349.4 MB, free: 6.719 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.486e-05/0.02308, allocations: 7.984 kB / 349.4 MB, free: 6.711 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.018e-05/0.02314, allocations: 48 kB / 349.4 MB, free: 6.664 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.838e-05/0.02316, allocations: 24 kB / 349.5 MB, free: 6.641 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009204/0.02408, allocations: 0.7535 MB / 350.2 MB, free: 5.891 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.004857/0.02894, allocations: 3.359 MB / 353.6 MB, free: 2.371 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001015/0.02995, allocations: 0.5429 MB / 354.1 MB, free: 1.82 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003114/0.03026, allocations: 246.7 kB / 354.4 MB, free: 1.578 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.683e-05/0.0303, allocations: 12.5 kB / 354.4 MB, free: 1.562 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004165/0.03072, allocations: 315.9 kB / 354.7 MB, free: 1.234 MB / 314.7 MB Notification: Performance of pre-optimization done (n=62): time 2.394e-06/0.03072, allocations: 3.938 kB / 354.7 MB, free: 1.23 MB / 314.7 MB Notification: Performance of matching and sorting (n=65): time 0.003103/0.03382, allocations: 1.872 MB / 356.6 MB, free: 15.32 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001726/0.03399, allocations: 479.3 kB / 357 MB, free: 14.74 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001153/0.03515, allocations: 1.132 MB / 358.2 MB, free: 13.59 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.713e-05/0.0352, allocations: 41.7 kB / 358.2 MB, free: 13.55 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003813/0.03558, allocations: 0.6483 MB / 358.8 MB, free: 12.89 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001545/0.03573, allocations: 246 kB / 359.1 MB, free: 12.65 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001991/0.03593, allocations: 194.8 kB / 359.3 MB, free: 12.45 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001025/0.03603, allocations: 341.9 kB / 359.6 MB, free: 12.11 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003861/0.03642, allocations: 305.9 kB / 359.9 MB, free: 11.8 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006873/0.03711, allocations: 1.16 MB / 361.1 MB, free: 10.32 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008797/0.03799, allocations: 0.9528 MB / 362 MB, free: 9.199 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.667e-06/0.03799, allocations: 4 kB / 362 MB, free: 9.195 MB / 330.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.001398/0.03939, allocations: 1.184 MB / 363.2 MB, free: 7.973 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.346e-05/0.03945, allocations: 71.86 kB / 363.3 MB, free: 7.891 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.438e-05/0.03946, allocations: 12 kB / 363.3 MB, free: 7.879 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003961/0.03986, allocations: 165.6 kB / 363.5 MB, free: 7.711 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003813/0.04024, allocations: 207.6 kB / 363.7 MB, free: 7.508 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002879/0.04312, allocations: 3.65 MB / 367.3 MB, free: 3.637 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006547/0.04377, allocations: 71.84 kB / 367.4 MB, free: 3.566 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.785e-05/0.04382, allocations: 44 kB / 367.4 MB, free: 3.523 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.0004115/0.04423, allocations: 293.8 kB / 367.7 MB, free: 3.227 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001399/0.04437, allocations: 131.2 kB / 367.8 MB, free: 3.098 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009574/0.04533, allocations: 0.7021 MB / 368.5 MB, free: 2.379 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.151e-06/0.04533, allocations: 8 kB / 368.5 MB, free: 2.371 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.825e-06/0.04534, allocations: 0 / 368.5 MB, free: 2.371 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008395/0.04618, allocations: 0.9512 MB / 369.5 MB, free: 1.309 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001938/0.04811, allocations: 1.619 MB / 371.1 MB, free: 15.61 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.04812, allocations: 4 kB / 371.1 MB, free: 15.6 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002608/0.04838, allocations: 103.9 kB / 371.2 MB, free: 15.5 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002611/0.04864, allocations: 125.8 kB / 371.3 MB, free: 15.37 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.889e-05/0.04867, allocations: 16 kB / 371.4 MB, free: 15.36 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002181/0.05085, allocations: 3.361 MB / 374.7 MB, free: 11.77 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.856e-06/0.05085, allocations: 3.938 kB / 374.7 MB, free: 11.77 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001157/0.05201, allocations: 1.046 MB / 375.8 MB, free: 10.68 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003198/0.05233, allocations: 183.1 kB / 375.9 MB, free: 10.5 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.392e-05/0.05241, allocations: 23.94 kB / 376 MB, free: 10.48 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003254/0.05274, allocations: 43.95 kB / 376 MB, free: 10.44 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001048/0.05284, allocations: 56.34 kB / 376.1 MB, free: 10.38 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.652e-05/0.05287, allocations: 23.92 kB / 376.1 MB, free: 10.36 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0006969/0.05357, allocations: 0.7484 MB / 376.8 MB, free: 9.602 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.05357, allocations: 0 / 376.8 MB, free: 9.602 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007246/0.05429, allocations: 311.9 kB / 377.1 MB, free: 9.297 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.001381/0.05567, allocations: 1.623 MB / 378.8 MB, free: 7.625 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001297/0.05697, allocations: 1.122 MB / 379.9 MB, free: 6.438 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.05697, allocations: 0 / 379.9 MB, free: 6.438 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005207/0.0575, allocations: 0.5371 MB / 380.4 MB, free: 5.875 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008572/0.05835, allocations: 335.2 kB / 380.8 MB, free: 5.555 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01056/0.06891, allocations: 9.884 MB / 390.6 MB, free: 11.06 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003539/0.06927, allocations: 0.4896 MB / 391.1 MB, free: 10.54 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0004843/0.06975, allocations: 145.8 kB / 391.3 MB, free: 10.39 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003932/0.07014, allocations: 480.3 kB / 391.7 MB, free: 9.926 MB / 362.7 MB Notification: Performance of SimCode: time 1.533e-06/0.07015, allocations: 0 / 391.7 MB, free: 9.926 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04968/0.1198, allocations: 31.69 MB / 423.4 MB, free: 10.7 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.635/8.754, allocations: 7.922 kB / 423.4 MB, free: 10.69 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling_fmu --startTime=0 --stopTime=25 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 653] Reference file matches [Calling sys.exit(0), Time elapsed: 23.237449394539]