Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009271/0.0009271, allocations: 76.06 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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008138/0.0008138, allocations: 149.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.885/0.885, allocations: 173.4 MB / 200.4 MB, free: 9.43 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,fileNamePrefix="Modelica_4_0_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_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.475e-06/2.475e-06, allocations: 0 / 318.5 MB, free: 6.336 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.436e-05/2.683e-05, allocations: 5.516 kB / 318.5 MB, free: 6.332 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.01047/0.01049, allocations: 8.445 MB / 326.9 MB, free: 13.84 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005126/0.01562, allocations: 2.929 MB / 329.8 MB, free: 10.9 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001136/0.01676, allocations: 27.88 kB / 329.9 MB, free: 10.88 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001534/0.01829, allocations: 0.5626 MB / 330.4 MB, free: 10.31 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001821/0.02011, allocations: 0.6238 MB / 331 MB, free: 9.68 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007843/0.0209, allocations: 319.4 kB / 331.4 MB, free: 9.367 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002375/0.02327, allocations: 1.832 MB / 333.2 MB, free: 7.527 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008167/0.02409, allocations: 429.3 kB / 333.6 MB, free: 7.086 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001706/0.02579, allocations: 1.025 MB / 334.6 MB, free: 6.059 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008585/0.02665, allocations: 0.5413 MB / 335.2 MB, free: 5.516 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002936/0.02695, allocations: 160 kB / 335.3 MB, free: 5.359 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004477/0.02739, allocations: 199.9 kB / 335.5 MB, free: 5.164 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002004/0.02759, allocations: 338.7 kB / 335.9 MB, free: 4.832 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006138/0.02821, allocations: 0.5612 MB / 336.4 MB, free: 4.27 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001972/0.03018, allocations: 2.009 MB / 338.4 MB, free: 2.254 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.03018, allocations: 0 / 338.4 MB, free: 2.254 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.324e-06/0.03019, allocations: 4 kB / 338.4 MB, free: 2.25 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.552e-05/0.03027, allocations: 0 / 338.4 MB, free: 2.25 MB / 298.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.003454/0.03373, allocations: 1.739 MB / 340.2 MB, free: 468 kB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.092e-05/0.0338, allocations: 12.92 kB / 340.2 MB, free: 456 kB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001785/0.03398, allocations: 161 kB / 340.3 MB, free: 284 kB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005298/0.03451, allocations: 207.9 kB / 340.5 MB, free: 76 kB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001263/0.03577, allocations: 0.7711 MB / 341.3 MB, free: 15.27 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001205/0.03589, allocations: 167.8 kB / 341.5 MB, free: 15.09 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001054/0.03599, allocations: 104.4 kB / 341.6 MB, free: 14.98 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001486/0.03748, allocations: 1.589 MB / 343.2 MB, free: 13.2 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.771e-05/0.03751, allocations: 3.953 kB / 343.2 MB, free: 13.2 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.998e-05/0.03757, allocations: 44 kB / 343.2 MB, free: 13.15 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.559e-05/0.03758, allocations: 28 kB / 343.2 MB, free: 13.12 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001009/0.03859, allocations: 0.7534 MB / 344 MB, free: 12.37 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.003988/0.04258, allocations: 3.367 MB / 347.4 MB, free: 8.84 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009688/0.04355, allocations: 0.5543 MB / 347.9 MB, free: 8.27 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000309/0.04386, allocations: 234.7 kB / 348.1 MB, free: 8.039 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.467e-05/0.04389, allocations: 12.44 kB / 348.2 MB, free: 8.027 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000434/0.04433, allocations: 332.2 kB / 348.5 MB, free: 7.688 MB / 314.7 MB Notification: Performance of pre-optimization done (n=62): time 2.454e-06/0.04433, allocations: 0 / 348.5 MB, free: 7.688 MB / 314.7 MB Notification: Performance of matching and sorting (n=65): time 0.002961/0.04729, allocations: 1.857 MB / 350.3 MB, free: 5.793 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001644/0.04746, allocations: 487.2 kB / 350.8 MB, free: 5.207 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001098/0.04855, allocations: 1.117 MB / 351.9 MB, free: 4.078 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.618e-05/0.0486, allocations: 41.7 kB / 352 MB, free: 4.031 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003929/0.04899, allocations: 0.656 MB / 352.6 MB, free: 3.367 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001556/0.04915, allocations: 245.9 kB / 352.9 MB, free: 3.125 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001989/0.04935, allocations: 198.8 kB / 353.1 MB, free: 2.926 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001166/0.04946, allocations: 345.9 kB / 353.4 MB, free: 2.582 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003872/0.04985, allocations: 305.8 kB / 353.7 MB, free: 2.27 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007518/0.0506, allocations: 1.165 MB / 354.9 MB, free: 0.7852 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009997/0.0516, allocations: 0.9412 MB / 355.8 MB, free: 15.67 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.365e-06/0.05161, allocations: 4 kB / 355.8 MB, free: 15.67 MB / 330.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.001514/0.05312, allocations: 1.188 MB / 357 MB, free: 14.44 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.715e-05/0.05317, allocations: 75.33 kB / 357.1 MB, free: 14.36 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.495e-05/0.05319, allocations: 12 kB / 357.1 MB, free: 14.34 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003838/0.05357, allocations: 165.8 kB / 357.2 MB, free: 14.18 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003741/0.05394, allocations: 203.6 kB / 357.4 MB, free: 13.98 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002995/0.05694, allocations: 3.652 MB / 361.1 MB, free: 10.11 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005792/0.05752, allocations: 59.92 kB / 361.2 MB, free: 10.05 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.705e-05/0.05757, allocations: 51.98 kB / 361.2 MB, free: 9.996 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.0006123/0.05818, allocations: 297.5 kB / 361.5 MB, free: 9.695 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001052/0.05828, allocations: 131.3 kB / 361.6 MB, free: 9.566 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009131/0.0592, allocations: 0.6944 MB / 362.3 MB, free: 8.855 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.53e-06/0.0592, allocations: 8 kB / 362.3 MB, free: 8.848 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.0592, allocations: 0 / 362.3 MB, free: 8.848 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008369/0.06004, allocations: 0.9551 MB / 363.3 MB, free: 7.785 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001979/0.06202, allocations: 1.612 MB / 364.9 MB, free: 6.098 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.559e-06/0.06203, allocations: 7.938 kB / 364.9 MB, free: 6.09 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002587/0.06228, allocations: 99.88 kB / 365 MB, free: 5.992 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002616/0.06255, allocations: 129.8 kB / 365.1 MB, free: 5.859 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.765e-05/0.06257, allocations: 16 kB / 365.1 MB, free: 5.844 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002623/0.0652, allocations: 3.365 MB / 368.5 MB, free: 2.25 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.0652, allocations: 3.938 kB / 368.5 MB, free: 2.246 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001241/0.06644, allocations: 1.05 MB / 369.6 MB, free: 1.152 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000357/0.0668, allocations: 187.1 kB / 369.7 MB, free: 0.9688 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.351e-05/0.06689, allocations: 19.98 kB / 369.8 MB, free: 0.9492 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003392/0.06723, allocations: 31.97 kB / 369.8 MB, free: 0.918 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001182/0.06735, allocations: 60.34 kB / 369.9 MB, free: 0.8594 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.645e-05/0.06737, allocations: 23.98 kB / 369.9 MB, free: 0.8359 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0007773/0.06815, allocations: 0.7484 MB / 370.6 MB, free: 84 kB / 330.7 MB Notification: Performance of sort global known variables: time 7e-08/0.06815, allocations: 0 / 370.6 MB, free: 84 kB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008385/0.06899, allocations: 308 kB / 370.9 MB, free: 15.78 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.001545/0.07053, allocations: 1.623 MB / 372.5 MB, free: 14.1 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001534/0.07207, allocations: 1.115 MB / 373.7 MB, free: 12.93 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.07207, allocations: 3.938 kB / 373.7 MB, free: 12.92 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006057/0.07268, allocations: 0.536 MB / 374.2 MB, free: 12.36 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009683/0.07365, allocations: 328.2 kB / 374.5 MB, free: 12.04 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01196/0.08561, allocations: 9.882 MB / 384.4 MB, free: 1.551 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003594/0.08597, allocations: 0.4896 MB / 384.9 MB, free: 1.027 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0004414/0.08641, allocations: 149.8 kB / 385 MB, free: 0.8789 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000407/0.08681, allocations: 472.3 kB / 385.5 MB, free: 428 kB / 346.7 MB Notification: Performance of SimCode: time 9.72e-07/0.08682, allocations: 0 / 385.5 MB, free: 428 kB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0513/0.1381, allocations: 31.67 MB / 417.2 MB, free: 1.188 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.806/8.944, allocations: 3.516 kB / 417.2 MB, free: 1.188 MB / 378.7 MB " [Timeout remaining time 651] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling_fmu --startTime=0 --stopTime=25 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Cooling/DCPM_Cooling.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.682719046249986]