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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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: 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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001186/0.001186, allocations: 102.5 kB / 17.06 MB, free: 6.117 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000982/0.000982, allocations: 198.9 kB / 18 MB, free: 5.195 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.378/1.378, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009601/0.0009601, allocations: 51.92 kB / 351.3 MB, free: 3.234 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.323/0.3239, allocations: 49.43 MB / 400.7 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.01047/0.3344, allocations: 9.599 MB / 410.3 MB, free: 15.24 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005138/0.3396, allocations: 3.104 MB / 413.4 MB, free: 12.12 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008803/0.3405, allocations: 31.88 kB / 413.5 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001421/0.342, allocations: 0.6147 MB / 414.1 MB, free: 11.48 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001261/0.3433, allocations: 0.5893 MB / 414.7 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00064/0.344, allocations: 315.5 kB / 415 MB, free: 10.57 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00159/0.3456, allocations: 1.761 MB / 416.7 MB, free: 8.801 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007702/0.3463, allocations: 0.6414 MB / 417.4 MB, free: 8.133 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000736/0.3471, allocations: 0.6771 MB / 418.1 MB, free: 7.453 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007454/0.3478, allocations: 0.739 MB / 418.8 MB, free: 6.711 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001794/0.348, allocations: 156 kB / 419 MB, free: 6.559 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003312/0.3484, allocations: 204 kB / 419.2 MB, free: 6.359 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002337/0.3486, allocations: 334.8 kB / 419.5 MB, free: 6.031 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007177/0.3493, allocations: 0.8048 MB / 420.3 MB, free: 5.223 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001815/0.3512, allocations: 1.981 MB / 422.3 MB, free: 3.234 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.3512, allocations: 0 / 422.3 MB, free: 3.234 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.3512, allocations: 0 / 422.3 MB, free: 3.234 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.751e-05/0.3512, allocations: 4 kB / 422.3 MB, free: 3.23 MB / 334.1 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.002857/0.3541, allocations: 1.797 MB / 424.1 MB, free: 1.363 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.133e-05/0.3541, allocations: 8.031 kB / 424.1 MB, free: 1.355 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005454/0.3547, allocations: 202.9 kB / 424.3 MB, free: 1.156 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001244/0.3559, allocations: 0.8289 MB / 425.1 MB, free: 292 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001262/0.3561, allocations: 116.4 kB / 425.2 MB, free: 168 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001555/0.3562, allocations: 116 kB / 425.3 MB, free: 52 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001821/0.3581, allocations: 1.139 MB / 426.5 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.581e-05/0.3581, allocations: 4 kB / 426.5 MB, free: 14.81 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.997e-05/0.3582, allocations: 47.98 kB / 426.5 MB, free: 14.77 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.143e-05/0.3582, allocations: 24 kB / 426.5 MB, free: 14.74 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001496/0.3597, allocations: 0.7612 MB / 427.3 MB, free: 13.98 MB / 350.1 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.005813/0.3656, allocations: 3.922 MB / 431.2 MB, free: 9.859 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00146/0.367, allocations: 0.5772 MB / 431.8 MB, free: 9.273 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004753/0.3675, allocations: 271.6 kB / 432.1 MB, free: 9.008 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.735e-05/0.3676, allocations: 16.55 kB / 432.1 MB, free: 8.992 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005958/0.3682, allocations: 295.5 kB / 432.4 MB, free: 8.691 MB / 350.1 MB Notification: Performance of pre-optimization done (n=62): time 3.918e-06/0.3682, allocations: 0 / 432.4 MB, free: 8.691 MB / 350.1 MB Notification: Performance of matching and sorting (n=65): time 0.00445/0.3727, allocations: 2.077 MB / 434.5 MB, free: 6.52 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002321/0.3729, allocations: 475.2 kB / 434.9 MB, free: 5.945 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001366/0.3743, allocations: 1.105 MB / 436 MB, free: 4.828 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.425e-05/0.3743, allocations: 37.7 kB / 436.1 MB, free: 4.785 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005103/0.3749, allocations: 0.6467 MB / 436.7 MB, free: 4.129 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001876/0.3751, allocations: 232.7 kB / 436.9 MB, free: 3.898 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002954/0.3754, allocations: 198.7 kB / 437.1 MB, free: 3.695 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001418/0.3755, allocations: 349.9 kB / 437.5 MB, free: 3.348 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005262/0.376, allocations: 242.5 kB / 437.7 MB, free: 3.113 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000878/0.3769, allocations: 0.713 MB / 438.4 MB, free: 2.191 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0013/0.3782, allocations: 0.9414 MB / 439.4 MB, free: 1.074 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.005e-06/0.3783, allocations: 7.938 kB / 439.4 MB, free: 1.066 MB / 350.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.001973/0.3802, allocations: 1.138 MB / 440.5 MB, free: 15.9 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.49e-05/0.3803, allocations: 63.41 kB / 440.6 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.701e-05/0.3803, allocations: 15.98 kB / 440.6 MB, free: 15.81 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005932/0.3809, allocations: 169.7 kB / 440.7 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006509/0.3816, allocations: 203.7 kB / 440.9 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004418/0.386, allocations: 3.877 MB / 444.8 MB, free: 11.29 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009569/0.387, allocations: 63.81 kB / 444.9 MB, free: 11.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.078e-05/0.3871, allocations: 44 kB / 444.9 MB, free: 11.18 MB / 366.1 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.0004834/0.3876, allocations: 301.7 kB / 445.2 MB, free: 10.88 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001665/0.3877, allocations: 126.5 kB / 445.3 MB, free: 10.75 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001397/0.3891, allocations: 0.7077 MB / 446.1 MB, free: 10.03 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.601e-06/0.3892, allocations: 4 kB / 446.1 MB, free: 10.02 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.3892, allocations: 4 kB / 446.1 MB, free: 10.02 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001405/0.3906, allocations: 0.9646 MB / 447 MB, free: 8.945 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002804/0.3934, allocations: 1.785 MB / 448.8 MB, free: 7.086 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.951e-06/0.3934, allocations: 4 kB / 448.8 MB, free: 7.082 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004692/0.3939, allocations: 103.9 kB / 448.9 MB, free: 6.98 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000429/0.3943, allocations: 129.8 kB / 449 MB, free: 6.848 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.003e-05/0.3944, allocations: 19.94 kB / 449.1 MB, free: 6.828 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003473/0.3979, allocations: 3.59 MB / 452.7 MB, free: 2.957 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.3979, allocations: 8.156 kB / 452.7 MB, free: 2.949 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001706/0.3996, allocations: 1.042 MB / 453.7 MB, free: 1.863 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003768/0.4, allocations: 247.6 kB / 453.9 MB, free: 1.602 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001246/0.4001, allocations: 20 kB / 454 MB, free: 1.582 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005799/0.4007, allocations: 47.89 kB / 454 MB, free: 1.535 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001275/0.4008, allocations: 52.44 kB / 454.1 MB, free: 1.484 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.787e-05/0.4009, allocations: 19.98 kB / 454.1 MB, free: 1.465 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0009995/0.4019, allocations: 0.7445 MB / 454.8 MB, free: 0.7148 MB / 366.1 MB Notification: Performance of sort global known variables: time 2e-07/0.4019, allocations: 0 / 454.8 MB, free: 0.7148 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001038/0.4029, allocations: 308 kB / 455.1 MB, free: 424 kB / 366.1 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.0002204/0.4032, allocations: 135.1 kB / 455.3 MB, free: 280 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001923/0.4051, allocations: 1.103 MB / 456.4 MB, free: 15.12 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/0.4051, allocations: 0 / 456.4 MB, free: 15.12 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008883/0.406, allocations: 0.5641 MB / 456.9 MB, free: 14.54 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001267/0.4073, allocations: 330.5 kB / 457.3 MB, free: 14.21 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003372/0.4107, allocations: 2.218 MB / 459.5 MB, free: 11.95 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006039/0.4113, allocations: 1.082 MB / 460.6 MB, free: 10.83 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004718/0.4118, allocations: 145.8 kB / 460.7 MB, free: 10.69 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001752/0.412, allocations: 79.44 kB / 460.8 MB, free: 10.61 MB / 382.1 MB Notification: Performance of SimCode: time 1.713e-06/0.412, allocations: 4 kB / 460.8 MB, free: 10.61 MB / 382.1 MB Notification: Performance of Templates: time 0.03076/0.4427, allocations: 18.19 MB / 479 MB, free: 8.66 MB / 398.1 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","/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) Reference file matches