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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.0008266/0.0008267, allocations: 176.1 kB / 17.4 MB, free: 4.395 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.337/1.337, allocations: 223.3 MB / 241.4 MB, free: 9.965 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000757/0.000757, allocations: 104.1 kB / 292.6 MB, free: 10.55 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000308/0.000308, allocations: 11.94 kB / 352.4 MB, free: 14.79 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2091/0.2095, allocations: 50.41 MB / 402.8 MB, free: 32.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1097/0.3192, allocations: 99.92 MB / 0.4909 GB, free: 12.35 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002513/0.3195, allocations: 88.67 kB / 0.491 GB, free: 12.26 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.274/0.5936, allocations: 30.55 MB / 0.5208 GB, free: 92.37 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.063e-06/0.5936, allocations: 2.656 kB / 0.5208 GB, free: 92.37 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.885e-05/0.5937, allocations: 26.19 kB / 0.5208 GB, free: 92.37 MB / 378.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.002102/0.5958, allocations: 1.538 MB / 0.5223 GB, free: 91.2 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.519e-05/0.5958, allocations: 9.125 kB / 0.5224 GB, free: 91.2 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004491/0.5963, allocations: 198.3 kB / 0.5225 GB, free: 91.11 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001184/0.5975, allocations: 0.8907 MB / 0.5234 GB, free: 90.41 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001183/0.5976, allocations: 115 kB / 0.5235 GB, free: 90.34 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000117/0.5978, allocations: 106.6 kB / 0.5236 GB, free: 90.3 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001539/0.5993, allocations: 1.144 MB / 0.5247 GB, free: 89.17 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.002e-05/0.5993, allocations: 15.83 kB / 0.5248 GB, free: 89.15 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.904e-05/0.5994, allocations: 48 kB / 0.5248 GB, free: 89.11 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.756e-05/0.5995, allocations: 28 kB / 0.5248 GB, free: 89.08 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001271/0.6007, allocations: 0.7808 MB / 0.5256 GB, free: 88.3 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004412/0.6052, allocations: 3.947 MB / 0.5294 GB, free: 84.2 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001286/0.6065, allocations: 0.6112 MB / 0.53 GB, free: 83.58 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004159/0.6069, allocations: 274.9 kB / 0.5303 GB, free: 83.31 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.017e-05/0.6069, allocations: 12.56 kB / 0.5303 GB, free: 83.3 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004937/0.6074, allocations: 314.7 kB / 0.5306 GB, free: 82.99 MB / 378.7 MB Notification: Performance of pre-optimization done (n=63): time 2.695e-06/0.6075, allocations: 0 / 0.5306 GB, free: 82.99 MB / 378.7 MB Notification: Performance of matching and sorting (n=66): time 0.00394/0.6114, allocations: 2.123 MB / 0.5327 GB, free: 80.77 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001021/0.6115, allocations: 479.2 kB / 0.5331 GB, free: 80.19 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001141/0.6127, allocations: 1.066 MB / 0.5342 GB, free: 79.11 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.11e-05/0.6127, allocations: 37.7 kB / 0.5342 GB, free: 79.07 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004061/0.6132, allocations: 0.6503 MB / 0.5349 GB, free: 78.41 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001361/0.6133, allocations: 240.4 kB / 0.5351 GB, free: 78.18 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.416e-05/0.6133, allocations: 24 kB / 0.5351 GB, free: 78.16 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.477e-05/0.6134, allocations: 345.9 kB / 0.5354 GB, free: 77.82 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004658/0.6139, allocations: 258.5 kB / 0.5357 GB, free: 77.57 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006291/0.6145, allocations: 0.7169 MB / 0.5364 GB, free: 76.64 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001056/0.6156, allocations: 0.9649 MB / 0.5373 GB, free: 75.5 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.969e-06/0.6156, allocations: 4 kB / 0.5373 GB, free: 75.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.001837/0.6175, allocations: 1.165 MB / 0.5385 GB, free: 74.31 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.292e-05/0.6175, allocations: 66.06 kB / 0.5385 GB, free: 74.23 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.719e-05/0.6175, allocations: 12 kB / 0.5385 GB, free: 74.22 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005278/0.6181, allocations: 169.8 kB / 0.5387 GB, free: 74.05 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006192/0.6187, allocations: 211.6 kB / 0.5389 GB, free: 73.84 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002978/0.6217, allocations: 3.554 MB / 0.5424 GB, free: 70.03 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000949/0.6227, allocations: 79.98 kB / 0.5425 GB, free: 69.95 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.428e-05/0.6227, allocations: 44 kB / 0.5425 GB, free: 69.91 MB / 378.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 (114): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {6 9} Notification: Performance of prepare postOptimizeDAE: time 0.0005312/0.6233, allocations: 304.5 kB / 0.5428 GB, free: 69.6 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001204/0.6234, allocations: 126.5 kB / 0.5429 GB, free: 69.48 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001232/0.6246, allocations: 0.7311 MB / 0.5436 GB, free: 68.72 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.6247, allocations: 11.98 kB / 0.5436 GB, free: 68.71 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.775e-06/0.6247, allocations: 0 / 0.5436 GB, free: 68.71 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001004/0.6257, allocations: 0.9608 MB / 0.5446 GB, free: 67.64 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002285/0.628, allocations: 1.813 MB / 0.5463 GB, free: 65.75 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.628, allocations: 0 / 0.5463 GB, free: 65.75 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004364/0.6284, allocations: 112.1 kB / 0.5465 GB, free: 65.64 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003525/0.6288, allocations: 125.6 kB / 0.5466 GB, free: 65.52 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.695e-05/0.6289, allocations: 27.97 kB / 0.5466 GB, free: 65.49 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002253/0.6311, allocations: 3.271 MB / 0.5498 GB, free: 61.95 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.6311, allocations: 0 / 0.5498 GB, free: 61.95 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001553/0.6327, allocations: 1.089 MB / 0.5509 GB, free: 60.82 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004199/0.6331, allocations: 259.5 kB / 0.5511 GB, free: 60.55 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001301/0.6333, allocations: 23.94 kB / 0.5511 GB, free: 60.52 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005146/0.6338, allocations: 43.91 kB / 0.5512 GB, free: 60.48 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001234/0.6339, allocations: 64.47 kB / 0.5512 GB, free: 60.42 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.135e-05/0.634, allocations: 16 kB / 0.5512 GB, free: 60.4 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0008755/0.6348, allocations: 0.7094 MB / 0.5519 GB, free: 59.69 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.6349, allocations: 0 / 0.5519 GB, free: 59.69 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001098/0.636, allocations: 364 kB / 0.5523 GB, free: 59.33 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,dcpm.la.i,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 (53): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {1 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004144/0.6364, allocations: 359.2 kB / 0.5526 GB, free: 59.01 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001706/0.6381, allocations: 1.119 MB / 0.5537 GB, free: 57.85 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.107e-06/0.6381, allocations: 0 / 0.5537 GB, free: 57.85 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007468/0.6389, allocations: 0.5637 MB / 0.5543 GB, free: 57.26 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001607/0.6405, allocations: 304.4 kB / 0.5546 GB, free: 56.96 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003273/0.6438, allocations: 2.736 MB / 0.5572 GB, free: 54.17 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004484/0.6442, allocations: 1.089 MB / 0.5583 GB, free: 53.05 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006741/0.6449, allocations: 157.7 kB / 0.5584 GB, free: 52.89 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001554/0.6451, allocations: 83.36 kB / 0.5585 GB, free: 52.81 MB / 378.7 MB Notification: Performance of SimCode: time 6.31e-07/0.6451, allocations: 0 / 0.5585 GB, free: 52.81 MB / 378.7 MB Notification: Performance of Templates: time 0.02641/0.6715, allocations: 18.98 MB / 0.5771 GB, free: 34.08 MB / 378.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/jenkins1/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