Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.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_QuasiStationary,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary") [: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.001527/0.001527, allocations: 179 kB / 8.48 MB, free: 1.871 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.108/1.108, allocations: 205.2 MB / 214.1 MB, free: 5.098 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008031/0.0008032, allocations: 89.97 kB / 262.1 MB, free: 5.137 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.312e-06/6.332e-06, allocations: 0 / 315 MB, free: 41.48 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06304/0.06306, allocations: 47.58 MB / 362.5 MB, free: 9.949 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2156/0.2787, allocations: 93.74 MB / 456.3 MB, free: 8.184 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002235/0.2789, allocations: 79.45 kB / 456.4 MB, free: 8.172 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.1004/0.3794, allocations: 40.23 MB / 496.6 MB, free: 14.26 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.242e-05/0.3795, allocations: 43.94 kB / 496.6 MB, free: 14.22 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.002483/0.382, allocations: 1.58 MB / 498.2 MB, free: 12.68 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.741e-05/0.382, allocations: 12.53 kB / 498.2 MB, free: 12.67 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007749/0.3828, allocations: 261.6 kB / 498.5 MB, free: 12.41 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001917/0.3847, allocations: 1.104 MB / 499.6 MB, free: 11.37 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.686e-05/0.3848, allocations: 48 kB / 499.6 MB, free: 11.32 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001676/0.385, allocations: 103.8 kB / 499.7 MB, free: 11.22 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001523/0.3865, allocations: 0.8145 MB / 0.4888 GB, free: 10.4 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001954/0.3885, allocations: 1.204 MB / 0.49 GB, free: 9.125 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.031e-05/0.3885, allocations: 11.91 kB / 0.49 GB, free: 9.113 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.271e-05/0.3886, allocations: 4 kB / 0.49 GB, free: 9.109 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.072e-05/0.3887, allocations: 36 kB / 0.49 GB, free: 9.074 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007517/0.3962, allocations: 6.377 MB / 0.4963 GB, free: 2.352 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003633/0.3966, allocations: 227.1 kB / 0.4965 GB, free: 2.121 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003017/0.3969, allocations: 190.1 kB / 0.4967 GB, free: 1.934 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.969e-05/0.3969, allocations: 8.375 kB / 0.4967 GB, free: 1.926 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003159/0.3973, allocations: 232.8 kB / 0.4969 GB, free: 1.672 MB / 346.7 MB Notification: Performance of pre-optimization done (n=50): time 2.334e-06/0.3973, allocations: 4 kB / 0.4969 GB, free: 1.668 MB / 346.7 MB Notification: Performance of matching and sorting (n=56): time 0.002507/0.3998, allocations: 1.491 MB / 0.4984 GB, free: 116 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.724e-05/0.3999, allocations: 192.4 kB / 0.4985 GB, free: 15.88 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001086/0.401, allocations: 0.8476 MB / 0.4994 GB, free: 15.02 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.565e-05/0.401, allocations: 25.7 kB / 0.4994 GB, free: 14.99 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004476/0.4015, allocations: 0.7375 MB / 0.5001 GB, free: 14.24 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001353/0.4016, allocations: 201.2 kB / 0.5003 GB, free: 14.04 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.843e-05/0.4017, allocations: 0 / 0.5003 GB, free: 14.04 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001093/0.4018, allocations: 345.9 kB / 0.5006 GB, free: 13.7 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003068/0.4021, allocations: 186.6 kB / 0.5008 GB, free: 13.51 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000602/0.4027, allocations: 0.754 MB / 0.5015 GB, free: 12.48 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004787/0.4032, allocations: 325.1 kB / 0.5019 GB, free: 12.16 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.182e-06/0.4032, allocations: 4 kB / 0.5019 GB, free: 12.16 MB / 362.7 MB Notification: Performance of matching and sorting (n=151) (initialization): time 0.001427/0.4046, allocations: 0.9308 MB / 0.5028 GB, free: 11.21 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.573e-05/0.4047, allocations: 7.984 kB / 0.5028 GB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.045e-05/0.4047, allocations: 20.75 kB / 0.5028 GB, free: 11.19 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002201/0.4049, allocations: 69.7 kB / 0.5029 GB, free: 11.11 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008739/0.4058, allocations: 271.5 kB / 0.5031 GB, free: 10.85 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0017/0.4075, allocations: 2.484 MB / 0.5055 GB, free: 8.133 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009318/0.4085, allocations: 52.03 kB / 0.5056 GB, free: 8.082 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.049e-05/0.4085, allocations: 56 kB / 0.5057 GB, free: 8.027 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * 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 (148): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 1 * 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,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001617/0.4087, allocations: 164.4 kB / 0.5058 GB, free: 7.859 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001272/0.4088, allocations: 122.5 kB / 0.5059 GB, free: 7.738 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008365/0.4097, allocations: 449.8 kB / 0.5064 GB, free: 7.277 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.925e-06/0.4097, allocations: 8 kB / 0.5064 GB, free: 7.27 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.4097, allocations: 0 / 0.5064 GB, free: 7.27 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.336e-06/0.4097, allocations: 3.984 kB / 0.5064 GB, free: 7.266 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002275/0.412, allocations: 1.661 MB / 0.508 GB, free: 5.504 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.154e-06/0.412, allocations: 7.938 kB / 0.508 GB, free: 5.496 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004739/0.4125, allocations: 108.4 kB / 0.5081 GB, free: 5.391 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001458/0.4127, allocations: 49.62 kB / 0.5081 GB, free: 5.336 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.167e-05/0.4127, allocations: 15.98 kB / 0.5082 GB, free: 5.32 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001511/0.4142, allocations: 2.437 MB / 0.5105 GB, free: 2.656 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.853e-06/0.4142, allocations: 11.94 kB / 0.5106 GB, free: 2.645 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001089/0.4153, allocations: 1.002 MB / 0.5115 GB, free: 1.504 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003612/0.4157, allocations: 231.5 kB / 0.5118 GB, free: 1.258 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001569/0.4159, allocations: 8 kB / 0.5118 GB, free: 1.25 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005543/0.4164, allocations: 27.97 kB / 0.5118 GB, free: 1.223 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.511e-05/0.4165, allocations: 47.84 kB / 0.5118 GB, free: 1.176 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.134e-05/0.4166, allocations: 20 kB / 0.5119 GB, free: 1.156 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0008144/0.4174, allocations: 0.6071 MB / 0.5124 GB, free: 0.543 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001132/0.4185, allocations: 276 kB / 0.5127 GB, free: 280 kB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.phi,dcpm1.inertiaRotor.w,dcpm1.la.i,dcpm2.inertiaRotor.phi,dcpm2.inertiaRotor.w) * 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 (54): * Single equations (assignments): 50 * 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: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004171/0.419, allocations: 285.8 kB / 0.513 GB, free: 15.98 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001148/0.4201, allocations: 0.7798 MB / 0.5137 GB, free: 15.19 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.4201, allocations: 0 / 0.5137 GB, free: 15.19 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005438/0.4207, allocations: 424.2 kB / 0.5141 GB, free: 14.75 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001181/0.4219, allocations: 270.3 kB / 0.5144 GB, free: 14.49 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003478/0.4254, allocations: 1.848 MB / 0.5162 GB, free: 12.55 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009055/0.4263, allocations: 1.293 MB / 0.5175 GB, free: 11.23 MB / 378.7 MB Notification: Performance of SimCode: time 4.71e-07/0.4263, allocations: 0 / 0.5175 GB, free: 11.23 MB / 378.7 MB Notification: Performance of Templates: time 0.0245/0.4508, allocations: 12.49 MB / 0.5297 GB, free: 14.73 MB / 394.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStationary/DCPM_QuasiStationary.csv","../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches