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_withLosses.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_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001538/0.001538, allocations: 176.8 kB / 8.148 MB, free: 2.188 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.575/1.575, allocations: 205.2 MB / 213.7 MB, free: 13.94 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.001214/0.001214, allocations: 91.12 kB / 261.8 MB, free: 13.64 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.933e-06/6.973e-06, allocations: 0 / 314.3 MB, free: 9.047 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2367/0.2367, allocations: 47.56 MB / 361.8 MB, free: 45.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1484/0.3851, allocations: 94.03 MB / 455.9 MB, free: 8.008 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003572/0.3856, allocations: 76.45 kB / 455.9 MB, free: 7.934 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.1894/0.575, allocations: 44.08 MB / 0.4883 GB, free: 11.64 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001232/0.5752, allocations: 32 kB / 0.4883 GB, free: 11.61 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.005002/0.5802, allocations: 1.632 MB / 0.4899 GB, free: 9.93 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.712e-05/0.5803, allocations: 12.03 kB / 0.4899 GB, free: 9.918 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001994/0.5823, allocations: 293.4 kB / 0.4902 GB, free: 9.629 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004293/0.5866, allocations: 1.216 MB / 0.4914 GB, free: 8.355 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.217e-05/0.5867, allocations: 48 kB / 0.4915 GB, free: 8.309 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003049/0.587, allocations: 95.91 kB / 0.4916 GB, free: 8.215 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003023/0.5901, allocations: 0.8731 MB / 0.4924 GB, free: 7.34 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003829/0.5939, allocations: 1.213 MB / 0.4936 GB, free: 6.066 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.146e-05/0.5941, allocations: 11.91 kB / 0.4936 GB, free: 6.055 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000168/0.5942, allocations: 4 kB / 0.4936 GB, free: 6.051 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.175e-05/0.5943, allocations: 36 kB / 0.4936 GB, free: 6.016 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1888/0.7831, allocations: 6.135 MB / 0.4996 GB, free: 82.77 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009309/0.7841, allocations: 312.9 kB / 0.4999 GB, free: 82.76 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001132/0.7852, allocations: 401.4 kB / 0.5003 GB, free: 82.75 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.029e-05/0.7853, allocations: 10.62 kB / 0.5003 GB, free: 82.75 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.647e-05/0.7854, allocations: 36.5 kB / 0.5004 GB, free: 82.71 MB / 394.7 MB Notification: Performance of pre-optimization done (n=66): time 3.537e-06/0.7854, allocations: 0 / 0.5004 GB, free: 82.71 MB / 394.7 MB Notification: Performance of matching and sorting (n=72): time 0.005057/0.7904, allocations: 1.661 MB / 0.502 GB, free: 82.3 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.392e-05/0.7905, allocations: 112 kB / 0.5021 GB, free: 82.18 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002158/0.7927, allocations: 0.901 MB / 0.503 GB, free: 82.03 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001693/0.7929, allocations: 29.64 kB / 0.503 GB, free: 82 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003757/0.7933, allocations: 0.6795 MB / 0.5037 GB, free: 81.61 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002839/0.7936, allocations: 248.7 kB / 0.5039 GB, free: 81.48 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.83e-05/0.7937, allocations: 0 / 0.5039 GB, free: 81.48 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001205/0.7938, allocations: 358.6 kB / 0.5042 GB, free: 81.17 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006816/0.7945, allocations: 223.5 kB / 0.5044 GB, free: 81.17 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008994/0.7954, allocations: 0.6696 MB / 0.5051 GB, free: 80.61 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000895/0.7963, allocations: 347.3 kB / 0.5054 GB, free: 80.6 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.878e-06/0.7964, allocations: 3.656 kB / 0.5054 GB, free: 80.6 MB / 394.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.003117/0.7995, allocations: 0.9869 MB / 0.5064 GB, free: 80.5 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.353e-05/0.7996, allocations: 3.5 kB / 0.5064 GB, free: 80.5 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.928e-05/0.7996, allocations: 17.88 kB / 0.5064 GB, free: 80.5 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005111/0.8002, allocations: 112 kB / 0.5065 GB, free: 80.48 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001924/0.8021, allocations: 271.7 kB / 0.5068 GB, free: 80.48 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00414/0.8063, allocations: 4.033 MB / 0.5107 GB, free: 76.82 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001148/0.8075, allocations: 46.23 kB / 0.5108 GB, free: 76.82 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001054/0.8076, allocations: 53.06 kB / 0.5108 GB, free: 76.82 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (139): * Single equations (assignments): 136 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.000241/0.8079, allocations: 67.72 kB / 0.5109 GB, free: 76.79 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004175/0.8083, allocations: 134 kB / 0.511 GB, free: 76.72 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002368/0.8107, allocations: 0.7058 MB / 0.5117 GB, free: 76.63 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.084e-05/0.8107, allocations: 9.125 kB / 0.5117 GB, free: 76.63 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.047e-06/0.8107, allocations: 3.031 kB / 0.5117 GB, free: 76.63 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.004e-05/0.8107, allocations: 2.062 kB / 0.5117 GB, free: 76.63 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004887/0.8156, allocations: 2.015 MB / 0.5137 GB, free: 76.19 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.718e-06/0.8157, allocations: 3.938 kB / 0.5137 GB, free: 76.19 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001165/0.8169, allocations: 138.7 kB / 0.5138 GB, free: 76.19 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005788/0.8175, allocations: 109.3 kB / 0.5139 GB, free: 76.17 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.879e-05/0.8175, allocations: 12.89 kB / 0.5139 GB, free: 76.17 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004099/0.8216, allocations: 4.145 MB / 0.518 GB, free: 72.5 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.426e-06/0.8217, allocations: 8.781 kB / 0.518 GB, free: 72.5 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003085/0.8248, allocations: 1.358 MB / 0.5193 GB, free: 71.89 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008678/0.8257, allocations: 260.2 kB / 0.5196 GB, free: 71.73 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003659/0.8261, allocations: 14.81 kB / 0.5196 GB, free: 71.73 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001348/0.8275, allocations: 40.14 kB / 0.5196 GB, free: 71.73 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000152/0.8277, allocations: 45.19 kB / 0.5197 GB, free: 71.72 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.565e-05/0.8277, allocations: 25.97 kB / 0.5197 GB, free: 71.72 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0015/0.8292, allocations: 0.6575 MB / 0.5203 GB, free: 71.61 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002128/0.8314, allocations: 303.7 kB / 0.5206 GB, free: 71.61 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006601/0.8321, allocations: 349.2 kB / 0.521 GB, free: 71.52 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002365/0.8345, allocations: 0.965 MB / 0.5219 GB, free: 71.21 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.386e-06/0.8346, allocations: 2.5 kB / 0.5219 GB, free: 71.21 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001338/0.8359, allocations: 0.5873 MB / 0.5225 GB, free: 70.91 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002882/0.8388, allocations: 293.3 kB / 0.5227 GB, free: 70.9 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008585/0.8475, allocations: 2.323 MB / 0.525 GB, free: 70.09 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001449/0.849, allocations: 1.352 MB / 0.5263 GB, free: 69.35 MB / 394.7 MB Notification: Performance of SimCode: time 4.088e-06/0.849, allocations: 0 / 0.5263 GB, free: 69.35 MB / 394.7 MB Notification: Performance of Templates: time 0.05733/0.9064, allocations: 39.1 MB / 0.5645 GB, free: 49.86 MB / 394.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_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_withLosses/DCPM_withLosses.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches