Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.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_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") [: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 4.0.0+maint.om/package.mo): time 0.0009606/0.0009606, allocations: 182.5 kB / 8.134 MB, free: 2.207 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.134/1.134, allocations: 221.4 MB / 229.9 MB, free: 3.074 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008969/0.0008969, allocations: 94 kB / 280.8 MB, free: 1.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.921e-06/5.961e-06, allocations: 0 / 336.5 MB, free: 9.504 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1749/0.1749, allocations: 50.39 MB / 386.9 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08863/0.2636, allocations: 93.63 MB / 480.5 MB, free: 9.148 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002028/0.2638, allocations: 79.78 kB / 480.6 MB, free: 9.074 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.05926/0.3231, allocations: 22.65 MB / 0.4915 GB, free: 2.336 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.907e-05/0.3232, allocations: 23.98 kB / 0.4915 GB, free: 2.312 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.001351/0.3245, allocations: 0.9857 MB / 0.4925 GB, free: 1.281 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.137e-05/0.3246, allocations: 8.688 kB / 0.4925 GB, free: 1.273 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004922/0.3251, allocations: 146.7 kB / 0.4926 GB, free: 1.129 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001145/0.3262, allocations: 0.6913 MB / 0.4933 GB, free: 404 kB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.86e-05/0.3263, allocations: 27.94 kB / 0.4933 GB, free: 376 kB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.892e-05/0.3263, allocations: 47.91 kB / 0.4934 GB, free: 328 kB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.101/0.4274, allocations: 430.2 kB / 0.4938 GB, free: 127.6 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009471/0.4284, allocations: 0.6284 MB / 0.4944 GB, free: 127.5 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.862e-05/0.4284, allocations: 6.75 kB / 0.4944 GB, free: 127.5 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.971e-05/0.4285, allocations: 0 / 0.4944 GB, free: 127.5 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.472e-05/0.4285, allocations: 20.59 kB / 0.4944 GB, free: 127.5 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003109/0.4316, allocations: 3.299 MB / 0.4976 GB, free: 125.9 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001653/0.4318, allocations: 128.6 kB / 0.4978 GB, free: 125.9 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001247/0.4319, allocations: 94.5 kB / 0.4978 GB, free: 125.9 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.032e-05/0.432, allocations: 6.375 kB / 0.4978 GB, free: 125.9 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.323e-05/0.432, allocations: 37.78 kB / 0.4979 GB, free: 125.9 MB / 378.7 MB Notification: Performance of pre-optimization done (n=25): time 1.523e-06/0.432, allocations: 0 / 0.4979 GB, free: 125.9 MB / 378.7 MB Notification: Performance of matching and sorting (n=28): time 0.000977/0.433, allocations: 0.7551 MB / 0.4986 GB, free: 125.5 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.257e-05/0.433, allocations: 80.22 kB / 0.4987 GB, free: 125.4 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005032/0.4335, allocations: 0.5219 MB / 0.4992 GB, free: 125.3 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.594e-05/0.4335, allocations: 25.7 kB / 0.4992 GB, free: 125.2 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001266/0.4337, allocations: 425.8 kB / 0.4996 GB, free: 125 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.327e-05/0.4337, allocations: 103.4 kB / 0.4997 GB, free: 125 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.497e-05/0.4337, allocations: 3.75 kB / 0.4997 GB, free: 125 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.022e-05/0.4338, allocations: 375.3 kB / 0.5001 GB, free: 124.6 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001413/0.434, allocations: 94.97 kB / 0.5002 GB, free: 124.6 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002032/0.4342, allocations: 375.4 kB / 0.5005 GB, free: 124.3 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002028/0.4344, allocations: 164.3 kB / 0.5007 GB, free: 124.3 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.4344, allocations: 3.156 kB / 0.5007 GB, free: 124.3 MB / 378.7 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0006293/0.435, allocations: 0.4989 MB / 0.5012 GB, free: 124.2 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.083e-05/0.435, allocations: 5.594 kB / 0.5012 GB, free: 124.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.029e-05/0.4351, allocations: 11.84 kB / 0.5012 GB, free: 124.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001192/0.4352, allocations: 38.47 kB / 0.5012 GB, free: 124.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004422/0.4356, allocations: 140.8 kB / 0.5014 GB, free: 124.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006344/0.4363, allocations: 1.24 MB / 0.5026 GB, free: 123 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004009/0.4367, allocations: 31.2 kB / 0.5026 GB, free: 123 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.004e-05/0.4367, allocations: 30.38 kB / 0.5027 GB, free: 123 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (74): * Single equations (assignments): 73 * 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: 1 * 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: 0 Notification: Performance of prepare postOptimizeDAE: time 7.89e-05/0.4368, allocations: 132.9 kB / 0.5028 GB, free: 122.9 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.384e-05/0.4369, allocations: 63.84 kB / 0.5028 GB, free: 122.9 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003721/0.4373, allocations: 258.2 kB / 0.5031 GB, free: 122.8 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.036e-06/0.4373, allocations: 3.875 kB / 0.5031 GB, free: 122.8 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.875e-06/0.4373, allocations: 0 / 0.5031 GB, free: 122.8 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.4373, allocations: 3.797 kB / 0.5031 GB, free: 122.8 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009469/0.4383, allocations: 0.909 MB / 0.504 GB, free: 122.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.315e-06/0.4383, allocations: 0 / 0.504 GB, free: 122.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00027/0.4386, allocations: 64.47 kB / 0.504 GB, free: 122.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.827e-05/0.4386, allocations: 23.2 kB / 0.5041 GB, free: 122.5 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.736e-05/0.4387, allocations: 7.406 kB / 0.5041 GB, free: 122.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005252/0.4392, allocations: 1.225 MB / 0.5053 GB, free: 121.3 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/0.4392, allocations: 11.22 kB / 0.5053 GB, free: 121.3 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004527/0.4397, allocations: 0.558 MB / 0.5058 GB, free: 120.9 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000145/0.4398, allocations: 164.5 kB / 0.506 GB, free: 120.8 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.365e-05/0.4399, allocations: 8.25 kB / 0.506 GB, free: 120.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003153/0.4402, allocations: 20.22 kB / 0.506 GB, free: 120.8 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.882e-05/0.4403, allocations: 21.92 kB / 0.506 GB, free: 120.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.462e-05/0.4403, allocations: 15.06 kB / 0.506 GB, free: 120.8 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0003532/0.4407, allocations: 395.2 kB / 0.5064 GB, free: 120.7 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005599/0.4412, allocations: 152 kB / 0.5066 GB, free: 120.7 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,dcpm.la.i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 26 * 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: 1 * 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: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002644/0.4415, allocations: 255.4 kB / 0.5068 GB, free: 120.6 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000468/0.442, allocations: 385.4 kB / 0.5072 GB, free: 120.5 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.442, allocations: 0 / 0.5072 GB, free: 120.5 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002107/0.4422, allocations: 210.2 kB / 0.5074 GB, free: 120.4 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006602/0.4429, allocations: 151.1 kB / 0.5075 GB, free: 120.4 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001518/0.4444, allocations: 0.9933 MB / 0.5085 GB, free: 120 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003911/0.4448, allocations: 1.008 MB / 0.5095 GB, free: 119.3 MB / 378.7 MB Notification: Performance of SimCode: time 2.81e-07/0.4448, allocations: 0 / 0.5095 GB, free: 119.3 MB / 378.7 MB Notification: Performance of Templates: time 0.01206/0.4569, allocations: 7.115 MB / 0.5164 GB, free: 118.8 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Start/DCPM_Start.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches