Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500000,variableFilter="time|armature.T|core.T|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500000,variableFilter="time|armature.T|core.T|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008985/0.0008985, allocations: 178.5 kB / 16.71 MB, free: 4.961 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.419/1.419, allocations: 225.7 MB / 243.2 MB, free: 8.438 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007463/0.0007463, allocations: 96.91 kB / 294.4 MB, free: 9.492 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000208/0.000208, allocations: 7.938 kB / 354.2 MB, free: 13.62 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1866/0.1868, allocations: 50.41 MB / 404.6 MB, free: 31.31 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.005835/0.1926, allocations: 8.515 MB / 413.1 MB, free: 22.76 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003877/0.1966, allocations: 3.385 MB / 416.5 MB, free: 19.27 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007172/0.1973, allocations: 27.94 kB / 416.5 MB, free: 19.25 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001069/0.1984, allocations: 0.5128 MB / 417 MB, free: 18.73 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008904/0.1993, allocations: 0.4926 MB / 417.5 MB, free: 18.23 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004462/0.1997, allocations: 271.7 kB / 417.8 MB, free: 17.97 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009807/0.2007, allocations: 1.67 MB / 419.5 MB, free: 16.29 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005526/0.2013, allocations: 0.5454 MB / 420 MB, free: 15.72 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004501/0.2017, allocations: 0.5678 MB / 420.6 MB, free: 15.15 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004611/0.2022, allocations: 0.6686 MB / 421.2 MB, free: 14.48 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001115/0.2023, allocations: 84 kB / 421.3 MB, free: 14.39 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002509/0.2026, allocations: 120 kB / 421.4 MB, free: 14.28 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001328/0.2027, allocations: 246.8 kB / 421.7 MB, free: 14.04 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004554/0.2032, allocations: 0.744 MB / 422.4 MB, free: 13.28 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009813/0.2042, allocations: 1.856 MB / 424.3 MB, free: 11.42 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.2042, allocations: 0 / 424.3 MB, free: 11.42 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.11e-07/0.2042, allocations: 0 / 424.3 MB, free: 11.42 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.291e-05/0.2042, allocations: 0 / 424.3 MB, free: 11.42 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.00187/0.2061, allocations: 1.555 MB / 425.8 MB, free: 9.793 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.525e-05/0.2061, allocations: 11.97 kB / 425.8 MB, free: 9.781 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004084/0.2065, allocations: 199 kB / 426 MB, free: 9.586 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008505/0.2074, allocations: 0.8172 MB / 426.9 MB, free: 8.723 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.585e-05/0.2075, allocations: 124.3 kB / 427 MB, free: 8.594 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001085/0.2076, allocations: 112 kB / 427.1 MB, free: 8.484 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001423/0.2091, allocations: 1.144 MB / 428.2 MB, free: 7.25 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.379e-05/0.2091, allocations: 0 / 428.2 MB, free: 7.25 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.078e-05/0.2092, allocations: 48 kB / 428.3 MB, free: 7.203 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.3e-05/0.2092, allocations: 31.94 kB / 428.3 MB, free: 7.172 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001181/0.2104, allocations: 0.7652 MB / 429.1 MB, free: 6.41 MB / 298.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.003892/0.2143, allocations: 3.969 MB / 433 MB, free: 2.238 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001218/0.2155, allocations: 0.5933 MB / 433.6 MB, free: 1.633 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004006/0.2159, allocations: 281.7 kB / 433.9 MB, free: 1.359 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.644e-05/0.216, allocations: 12.55 kB / 433.9 MB, free: 1.348 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005101/0.2165, allocations: 295.1 kB / 434.2 MB, free: 1.051 MB / 298.7 MB Notification: Performance of pre-optimization done (n=62): time 2.054e-06/0.2165, allocations: 4 kB / 434.2 MB, free: 1.047 MB / 298.7 MB Notification: Performance of matching and sorting (n=65): time 0.003758/0.2203, allocations: 2.116 MB / 436.3 MB, free: 14.84 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001549/0.2204, allocations: 487.2 kB / 436.8 MB, free: 14.25 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001233/0.2217, allocations: 1.09 MB / 437.9 MB, free: 13.15 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.3e-05/0.2217, allocations: 45.64 kB / 437.9 MB, free: 13.1 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004143/0.2221, allocations: 0.6466 MB / 438.6 MB, free: 12.44 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001501/0.2223, allocations: 228.7 kB / 438.8 MB, free: 12.21 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.482e-05/0.2223, allocations: 23.94 kB / 438.8 MB, free: 12.19 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001002/0.2224, allocations: 345.9 kB / 439.2 MB, free: 11.85 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004789/0.2229, allocations: 258.5 kB / 439.4 MB, free: 11.59 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007397/0.2237, allocations: 0.713 MB / 440.1 MB, free: 10.67 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001216/0.2249, allocations: 0.957 MB / 441.1 MB, free: 9.543 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.252e-06/0.2249, allocations: 7.938 kB / 441.1 MB, free: 9.535 MB / 314.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.001703/0.2266, allocations: 1.134 MB / 442.2 MB, free: 8.375 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.729e-05/0.2267, allocations: 63.41 kB / 442.3 MB, free: 8.301 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.097e-05/0.2267, allocations: 12 kB / 442.3 MB, free: 8.289 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000476/0.2272, allocations: 177.7 kB / 442.5 MB, free: 8.109 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006144/0.2278, allocations: 203.7 kB / 442.7 MB, free: 7.91 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003341/0.2312, allocations: 3.556 MB / 446.2 MB, free: 4.086 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007909/0.232, allocations: 83.89 kB / 446.3 MB, free: 4.004 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.945e-05/0.232, allocations: 44 kB / 446.4 MB, free: 3.961 MB / 314.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 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * 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.0003905/0.2324, allocations: 293.6 kB / 446.6 MB, free: 3.664 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001216/0.2326, allocations: 130.5 kB / 446.8 MB, free: 3.535 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00131/0.2339, allocations: 0.7194 MB / 447.5 MB, free: 2.797 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.803e-06/0.2339, allocations: 8 kB / 447.5 MB, free: 2.789 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.555e-06/0.2339, allocations: 0 / 447.5 MB, free: 2.789 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001194/0.2351, allocations: 0.9724 MB / 448.5 MB, free: 1.707 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002511/0.2376, allocations: 1.806 MB / 450.3 MB, free: 15.82 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.628e-06/0.2376, allocations: 4 kB / 450.3 MB, free: 15.82 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004563/0.2381, allocations: 112.1 kB / 450.4 MB, free: 15.71 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000372/0.2385, allocations: 125.8 kB / 450.5 MB, free: 15.58 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.858e-05/0.2385, allocations: 19.94 kB / 450.5 MB, free: 15.56 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003124/0.2417, allocations: 3.286 MB / 453.8 MB, free: 12 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.068e-06/0.2417, allocations: 4.031 kB / 453.8 MB, free: 12 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001606/0.2433, allocations: 1.065 MB / 454.9 MB, free: 10.89 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003414/0.2437, allocations: 255.6 kB / 455.1 MB, free: 10.62 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001351/0.2438, allocations: 23.94 kB / 455.2 MB, free: 10.6 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005784/0.2444, allocations: 43.95 kB / 455.2 MB, free: 10.55 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001111/0.2445, allocations: 64.42 kB / 455.3 MB, free: 10.49 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.24e-05/0.2446, allocations: 16 kB / 455.3 MB, free: 10.48 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0008926/0.2455, allocations: 0.7367 MB / 456 MB, free: 9.734 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2455, allocations: 0 / 456 MB, free: 9.734 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008613/0.2463, allocations: 304 kB / 456.3 MB, free: 9.438 MB / 330.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.0001779/0.2465, allocations: 151 kB / 456.5 MB, free: 9.281 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001693/0.2482, allocations: 1.102 MB / 457.6 MB, free: 8.125 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.2482, allocations: 0 / 457.6 MB, free: 8.125 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008257/0.2491, allocations: 0.5612 MB / 458.1 MB, free: 7.543 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001411/0.2505, allocations: 304.7 kB / 458.4 MB, free: 7.246 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003125/0.2536, allocations: 2.848 MB / 461.3 MB, free: 4.348 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005351/0.2542, allocations: 1.082 MB / 462.4 MB, free: 3.234 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0004913/0.2547, allocations: 149.8 kB / 462.5 MB, free: 3.086 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001566/0.2548, allocations: 75.44 kB / 462.6 MB, free: 3.012 MB / 330.7 MB Notification: Performance of SimCode: time 2.3e-07/0.2548, allocations: 0 / 462.6 MB, free: 3.012 MB / 330.7 MB Notification: Performance of Templates: time 0.02894/0.2838, allocations: 16.85 MB / 479.4 MB, free: 2.32 MB / 346.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.makefile (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 & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1) 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","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches