Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.001402/0.001401, allocations: 178 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.992/1.992, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00101/0.001011, allocations: 91.2 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 1.888e-05/1.911e-05, allocations: 4 kB / 314.8 MB, free: 9.145 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3396/0.3396, allocations: 47.56 MB / 362.3 MB, free: 45.85 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1635/0.5032, allocations: 99.26 MB / 461.6 MB, free: 2.988 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003035/0.5035, allocations: 91.83 kB / 461.7 MB, free: 2.902 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.1366/0.6401, allocations: 30.45 MB / 492.1 MB, free: 4.375 MB / 379.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.6402, allocations: 0 / 492.1 MB, free: 4.375 MB / 379.1 MB Notification: Performance of Transformations before backend: time 9.972e-05/0.6403, allocations: 28 kB / 492.2 MB, free: 4.348 MB / 379.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.003587/0.6439, allocations: 1.36 MB / 493.5 MB, free: 2.926 MB / 379.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.378e-05/0.644, allocations: 12.03 kB / 493.5 MB, free: 2.914 MB / 379.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009208/0.6449, allocations: 202.1 kB / 493.7 MB, free: 2.715 MB / 379.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002411/0.6474, allocations: 0.8479 MB / 494.6 MB, free: 1.82 MB / 379.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001796/0.6476, allocations: 79.83 kB / 494.7 MB, free: 1.734 MB / 379.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002526/0.6478, allocations: 67.91 kB / 494.7 MB, free: 1.668 MB / 379.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001985/0.6498, allocations: 0.6369 MB / 495.4 MB, free: 1.027 MB / 379.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002386/0.6522, allocations: 0.9315 MB / 496.3 MB, free: 8 kB / 379.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.881e-05/0.6523, allocations: 4 kB / 496.3 MB, free: 4 kB / 379.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001173/0.6524, allocations: 4 kB / 496.3 MB, free: 0 / 379.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.609e-05/0.6525, allocations: 24.05 kB / 496.3 MB, free: 15.97 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008974/0.6615, allocations: 3.728 MB / 0.4883 GB, free: 12.07 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002099/0.6636, allocations: 0.5101 MB / 0.4888 GB, free: 11.54 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005559/0.6642, allocations: 223.9 kB / 0.4891 GB, free: 11.32 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.784e-05/0.6643, allocations: 8.562 kB / 0.4891 GB, free: 11.31 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000688/0.665, allocations: 254 kB / 0.4893 GB, free: 11.05 MB / 395.1 MB Notification: Performance of pre-optimization done (n=63): time 3.918e-06/0.665, allocations: 0 / 0.4893 GB, free: 11.05 MB / 395.1 MB Notification: Performance of matching and sorting (n=66): time 0.00416/0.6692, allocations: 1.395 MB / 0.4907 GB, free: 9.598 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002591/0.6695, allocations: 495.1 kB / 0.4911 GB, free: 9 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00156/0.671, allocations: 0.744 MB / 0.4919 GB, free: 8.238 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 8.337e-05/0.6711, allocations: 29.7 kB / 0.4919 GB, free: 8.203 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006755/0.6718, allocations: 0.6524 MB / 0.4925 GB, free: 7.543 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002772/0.6721, allocations: 228.7 kB / 0.4927 GB, free: 7.316 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.24e-05/0.6722, allocations: 4 kB / 0.4928 GB, free: 7.312 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001789/0.6724, allocations: 346.8 kB / 0.4931 GB, free: 6.965 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006004/0.673, allocations: 194.6 kB / 0.4933 GB, free: 6.777 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001014/0.674, allocations: 0.6483 MB / 0.4939 GB, free: 5.922 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000784/0.6748, allocations: 306.5 kB / 0.4942 GB, free: 5.625 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.091e-05/0.6748, allocations: 4 kB / 0.4942 GB, free: 5.621 MB / 395.1 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.00268/0.6775, allocations: 0.8768 MB / 0.4951 GB, free: 4.73 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.911e-05/0.6776, allocations: 72.08 kB / 0.4951 GB, free: 4.648 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.255e-05/0.6777, allocations: 15.94 kB / 0.4951 GB, free: 4.633 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001088/0.6788, allocations: 185.5 kB / 0.4953 GB, free: 4.445 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00132/0.6801, allocations: 211.7 kB / 0.4955 GB, free: 4.238 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005967/0.6861, allocations: 3.407 MB / 0.4988 GB, free: 0.6055 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001609/0.6878, allocations: 59.77 kB / 0.4989 GB, free: 0.5469 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001146/0.6879, allocations: 48.09 kB / 0.4989 GB, free: 0.5 MB / 395.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 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete 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: 2 {(1,100.0%) 1,(2,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002847/0.6882, allocations: 140.8 kB / 0.4991 GB, free: 364 kB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002157/0.6884, allocations: 110.7 kB / 0.4992 GB, free: 252 kB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2882/0.9766, allocations: 0.6242 MB / 0.4998 GB, free: 106.4 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.66e-05/0.9767, allocations: 7.719 kB / 0.4998 GB, free: 106.4 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.337e-06/0.9767, allocations: 2.031 kB / 0.4998 GB, free: 106.4 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00166/0.9784, allocations: 0.8819 MB / 0.5007 GB, free: 105.9 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004496/0.9829, allocations: 1.587 MB / 0.5022 GB, free: 105.5 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.121e-05/0.983, allocations: 3.688 kB / 0.5022 GB, free: 105.5 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009786/0.984, allocations: 116.6 kB / 0.5023 GB, free: 105.5 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007437/0.9848, allocations: 125.8 kB / 0.5024 GB, free: 105.5 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.391e-05/0.9848, allocations: 12.92 kB / 0.5025 GB, free: 105.5 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004102/0.989, allocations: 3.145 MB / 0.5055 GB, free: 103 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.949e-06/0.989, allocations: 2 kB / 0.5055 GB, free: 103 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002744/0.9918, allocations: 1.041 MB / 0.5066 GB, free: 102.7 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007202/0.9925, allocations: 238.8 kB / 0.5068 GB, free: 102.6 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002169/0.9928, allocations: 7.344 kB / 0.5068 GB, free: 102.6 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009539/0.9937, allocations: 33.39 kB / 0.5068 GB, free: 102.6 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002358/0.994, allocations: 58.22 kB / 0.5069 GB, free: 102.6 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.986e-05/0.9941, allocations: 20.94 kB / 0.5069 GB, free: 102.6 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.00124/0.9953, allocations: 0.5488 MB / 0.5074 GB, free: 102.5 MB / 395.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.9953, allocations: 0 / 0.5074 GB, free: 102.5 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.002/0.9974, allocations: 294.6 kB / 0.5077 GB, free: 102.5 MB / 395.1 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) * 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.0006937/0.9981, allocations: 304.8 kB / 0.508 GB, free: 102.4 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.002923/1.001, allocations: 0.957 MB / 0.5089 GB, free: 102.1 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 9.448e-06/1.001, allocations: 2.375 kB / 0.5089 GB, free: 102.1 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00118/1.002, allocations: 0.4887 MB / 0.5094 GB, free: 101.9 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002188/1.004, allocations: 252.4 kB / 0.5097 GB, free: 101.9 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004932/1.009, allocations: 1.616 MB / 0.5112 GB, free: 101.3 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009441/1.01, allocations: 1.107 MB / 0.5123 GB, free: 100.6 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004571/1.011, allocations: 75.92 kB / 0.5124 GB, free: 100.6 MB / 395.1 MB Notification: Performance of SimCode: time 9.62e-07/1.011, allocations: 0 / 0.5124 GB, free: 100.6 MB / 395.1 MB Notification: Performance of Templates: time 0.0467/1.058, allocations: 24.78 MB / 0.5366 GB, free: 97.05 MB / 395.1 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches