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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001453/0.001453, allocations: 187 kB / 17.92 MB, free: 3.855 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.262/1.262, allocations: 205.1 MB / 223.8 MB, free: 8.469 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009344/0.0009344, allocations: 91.67 kB / 271.2 MB, free: 8.43 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000741/0.0007411, allocations: 39.94 kB / 327.2 MB, free: 308 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1838/0.1845, allocations: 46.62 MB / 373.8 MB, free: 45.64 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.007343/0.1919, allocations: 9.492 MB / 383.3 MB, free: 38.28 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003421/0.1953, allocations: 3.106 MB / 386.4 MB, free: 35.7 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005069/0.1959, allocations: 26.69 kB / 386.5 MB, free: 35.7 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001063/0.197, allocations: 0.5191 MB / 387 MB, free: 35.32 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007899/0.1978, allocations: 494.5 kB / 387.5 MB, free: 34.91 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004108/0.1982, allocations: 276.5 kB / 387.7 MB, free: 34.67 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001219/0.1994, allocations: 1.703 MB / 389.4 MB, free: 33.66 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006309/0.2001, allocations: 0.5541 MB / 390 MB, free: 33.27 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007697/0.2008, allocations: 0.6146 MB / 390.6 MB, free: 32.65 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005563/0.2014, allocations: 0.7077 MB / 391.3 MB, free: 31.94 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001299/0.2015, allocations: 108 kB / 391.4 MB, free: 31.83 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002775/0.2018, allocations: 144 kB / 391.6 MB, free: 31.69 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001333/0.202, allocations: 282.8 kB / 391.8 MB, free: 31.41 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004253/0.2024, allocations: 0.7618 MB / 392.6 MB, free: 30.65 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009973/0.2034, allocations: 1.915 MB / 394.5 MB, free: 28.73 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.2034, allocations: 4 kB / 394.5 MB, free: 28.72 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.2034, allocations: 0 / 394.5 MB, free: 28.72 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.312e-05/0.2034, allocations: 0 / 394.5 MB, free: 28.72 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.002332/0.2058, allocations: 1.789 MB / 396.3 MB, free: 26.86 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.162e-05/0.2058, allocations: 12.03 kB / 396.3 MB, free: 26.85 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004281/0.2063, allocations: 199 kB / 396.5 MB, free: 26.66 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008766/0.2071, allocations: 0.8171 MB / 397.3 MB, free: 25.79 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.36e-05/0.2072, allocations: 112.4 kB / 397.4 MB, free: 25.68 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001102/0.2074, allocations: 124 kB / 397.6 MB, free: 25.55 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001319/0.2087, allocations: 1.142 MB / 398.7 MB, free: 24.32 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.691e-05/0.2087, allocations: 0 / 398.7 MB, free: 24.32 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.066e-05/0.2088, allocations: 48 kB / 398.7 MB, free: 24.27 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.333e-05/0.2088, allocations: 24 kB / 398.8 MB, free: 24.25 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001169/0.21, allocations: 0.7574 MB / 399.5 MB, free: 23.5 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.003776/0.2138, allocations: 3.945 MB / 403.5 MB, free: 19.35 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001215/0.215, allocations: 0.5834 MB / 404 MB, free: 18.76 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003885/0.2154, allocations: 262.9 kB / 404.3 MB, free: 18.5 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.115e-05/0.2155, allocations: 12.56 kB / 404.3 MB, free: 18.49 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004842/0.216, allocations: 299.4 kB / 404.6 MB, free: 18.18 MB / 298.7 MB Notification: Performance of pre-optimization done (n=62): time 1.944e-06/0.216, allocations: 0 / 404.6 MB, free: 18.18 MB / 298.7 MB Notification: Performance of matching and sorting (n=65): time 0.003515/0.2195, allocations: 2.077 MB / 406.7 MB, free: 16.01 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.361e-05/0.2196, allocations: 479.2 kB / 407.2 MB, free: 15.43 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009702/0.2205, allocations: 1.101 MB / 408.3 MB, free: 14.32 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.673e-05/0.2206, allocations: 45.7 kB / 408.3 MB, free: 14.27 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002758/0.2209, allocations: 0.6466 MB / 408.9 MB, free: 13.61 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.823e-05/0.221, allocations: 232.7 kB / 409.2 MB, free: 13.38 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001929/0.2212, allocations: 194.8 kB / 409.4 MB, free: 13.19 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.076e-05/0.2212, allocations: 345.9 kB / 409.7 MB, free: 12.84 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004203/0.2217, allocations: 250.5 kB / 409.9 MB, free: 12.6 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005684/0.2222, allocations: 0.7091 MB / 410.7 MB, free: 11.68 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009335/0.2232, allocations: 0.9414 MB / 411.6 MB, free: 10.57 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.478e-06/0.2232, allocations: 7.938 kB / 411.6 MB, free: 10.56 MB / 298.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.001507/0.2247, allocations: 1.146 MB / 412.8 MB, free: 9.387 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.368e-05/0.2248, allocations: 67.39 kB / 412.8 MB, free: 9.309 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.134e-05/0.2248, allocations: 8 kB / 412.8 MB, free: 9.301 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004472/0.2252, allocations: 168 kB / 413 MB, free: 9.133 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005392/0.2258, allocations: 211.7 kB / 413.2 MB, free: 8.926 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002644/0.2284, allocations: 3.548 MB / 416.7 MB, free: 5.117 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007136/0.2292, allocations: 68.03 kB / 416.8 MB, free: 5.051 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.897e-05/0.2292, allocations: 51.98 kB / 416.9 MB, free: 5 MB / 298.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.0002925/0.2295, allocations: 289.6 kB / 417.1 MB, free: 4.707 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001065/0.2296, allocations: 130.4 kB / 417.3 MB, free: 4.578 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001129/0.2308, allocations: 0.7077 MB / 418 MB, free: 3.844 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.468e-06/0.2308, allocations: 8.047 kB / 418 MB, free: 3.836 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.327e-06/0.2308, allocations: 8.109 kB / 418 MB, free: 3.828 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009827/0.2318, allocations: 0.9568 MB / 419 MB, free: 2.766 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001984/0.2338, allocations: 1.786 MB / 420.7 MB, free: 0.8945 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.2338, allocations: 3.938 kB / 420.7 MB, free: 0.8906 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003905/0.2342, allocations: 103.9 kB / 420.8 MB, free: 0.7891 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003193/0.2345, allocations: 129.8 kB / 421 MB, free: 0.6562 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.95e-05/0.2345, allocations: 12 kB / 421 MB, free: 0.6445 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002575/0.2371, allocations: 3.282 MB / 424.3 MB, free: 13.11 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/0.2371, allocations: 4.031 kB / 424.3 MB, free: 13.1 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01095/0.2481, allocations: 8.428 MB / 432.7 MB, free: 4.207 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004945/0.2486, allocations: 251.6 kB / 432.9 MB, free: 3.941 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001293/0.2488, allocations: 16 kB / 433 MB, free: 3.926 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006094/0.2494, allocations: 43.95 kB / 433 MB, free: 3.883 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001527/0.2496, allocations: 72.44 kB / 433.1 MB, free: 3.812 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.495e-05/0.2496, allocations: 16 kB / 433.1 MB, free: 3.797 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0009935/0.2506, allocations: 0.7445 MB / 433.8 MB, free: 3.047 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2506, allocations: 0 / 433.8 MB, free: 3.047 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001367/0.252, allocations: 456 kB / 434.3 MB, free: 2.602 MB / 314.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.0002807/0.2523, allocations: 135 kB / 434.4 MB, free: 2.461 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001835/0.2541, allocations: 1.092 MB / 435.5 MB, free: 1.32 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.2541, allocations: 0 / 435.5 MB, free: 1.32 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008381/0.255, allocations: 0.5433 MB / 436 MB, free: 0.75 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001339/0.2563, allocations: 303.6 kB / 436.3 MB, free: 464 kB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004102/0.2605, allocations: 3.359 MB / 439.7 MB, free: 13.01 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005771/0.261, allocations: 1.104 MB / 440.8 MB, free: 11.87 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005458/0.2616, allocations: 157.8 kB / 441 MB, free: 11.71 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001711/0.2618, allocations: 79.44 kB / 441 MB, free: 11.64 MB / 330.7 MB Notification: Performance of SimCode: time 5.91e-07/0.2618, allocations: 0 / 441 MB, free: 11.64 MB / 330.7 MB Notification: Performance of Templates: time 0.02657/0.2884, allocations: 19.08 MB / 460.1 MB, free: 8.543 MB / 346.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.makefile (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 & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Cooling/DCPM_Cooling.csv","../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches