Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.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.InductionMachines.IMC_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|loadInertia.phi|loadInertia.w|vfController.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter") translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|loadInertia.phi|loadInertia.w|vfController.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter") [: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.0009894/0.0009894, allocations: 183.4 kB / 8.136 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.195/1.195, allocations: 221.4 MB / 229.9 MB, free: 3.012 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.000847/0.000847, allocations: 91.31 kB / 280.8 MB, free: 1.266 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.75e-06/5.851e-06, allocations: 0 / 336.5 MB, free: 9.48 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1769/0.177, allocations: 50.39 MB / 386.9 MB, free: 37.97 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09942/0.2764, allocations: 101.7 MB / 488.6 MB, free: 1.02 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002105/0.2767, allocations: 89.52 kB / 488.7 MB, free: 0.9336 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.2237/0.5004, allocations: 39.59 MB / 0.5159 GB, free: 93.2 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.896e-05/0.5005, allocations: 55.94 kB / 0.516 GB, free: 93.15 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: 468 * Number of variables: 468 Notification: Performance of Generate backend data structure: time 0.002898/0.5034, allocations: 1.947 MB / 0.5179 GB, free: 91.16 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.221e-05/0.5034, allocations: 8.031 kB / 0.5179 GB, free: 91.15 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000577/0.504, allocations: 257.2 kB / 0.5181 GB, free: 90.89 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001997/0.506, allocations: 1.351 MB / 0.5195 GB, free: 89.52 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.645e-05/0.5061, allocations: 60 kB / 0.5195 GB, free: 89.46 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002083/0.5063, allocations: 115.8 kB / 0.5196 GB, free: 89.35 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002296/0.5086, allocations: 1.717 MB / 0.5213 GB, free: 87.63 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002631/0.5112, allocations: 2.056 MB / 0.5233 GB, free: 85.49 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.96e-05/0.5113, allocations: 3.906 kB / 0.5233 GB, free: 85.49 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001451/0.5115, allocations: 4 kB / 0.5233 GB, free: 85.48 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.067e-05/0.5115, allocations: 83.52 kB / 0.5234 GB, free: 85.4 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008281/0.5198, allocations: 6.84 MB / 0.5301 GB, free: 78.45 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008673/0.5207, allocations: 0.6961 MB / 0.5308 GB, free: 77.74 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009094/0.5216, allocations: 0.7288 MB / 0.5315 GB, free: 77.01 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002319/0.5219, allocations: 129.7 kB / 0.5316 GB, free: 76.87 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.678e-05/0.5219, allocations: 47.34 kB / 0.5316 GB, free: 76.81 MB / 378.7 MB Notification: Performance of pre-optimization done (n=90): time 2.485e-06/0.5219, allocations: 0 / 0.5316 GB, free: 76.81 MB / 378.7 MB Notification: Performance of matching and sorting (n=114): time 0.007524/0.5294, allocations: 4.62 MB / 0.5362 GB, free: 72.14 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.097e-05/0.5295, allocations: 64.41 kB / 0.5362 GB, free: 72.07 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009024/0.5304, allocations: 0.8589 MB / 0.5371 GB, free: 71.2 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.554e-05/0.5305, allocations: 25.7 kB / 0.5371 GB, free: 71.16 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002126/0.5307, allocations: 0.7005 MB / 0.5378 GB, free: 70.45 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001878/0.5309, allocations: 394.2 kB / 0.5381 GB, free: 70.06 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.398e-05/0.5309, allocations: 0 / 0.5381 GB, free: 70.06 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.227e-05/0.531, allocations: 353.9 kB / 0.5385 GB, free: 69.71 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007101/0.5317, allocations: 0.6234 MB / 0.5391 GB, free: 69.09 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008007/0.5325, allocations: 0.9243 MB / 0.54 GB, free: 68.04 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008758/0.5334, allocations: 0.7758 MB / 0.5407 GB, free: 67.26 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.107e-06/0.5334, allocations: 4 kB / 0.5408 GB, free: 67.26 MB / 378.7 MB Notification: Performance of matching and sorting (n=164) (initialization): time 0.003082/0.5365, allocations: 2.224 MB / 0.5429 GB, free: 65.02 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.099e-05/0.5365, allocations: 8.25 kB / 0.5429 GB, free: 65.02 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.05e-05/0.5366, allocations: 8 kB / 0.5429 GB, free: 65.01 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001436/0.538, allocations: 0.6349 MB / 0.5436 GB, free: 64.36 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001013/0.539, allocations: 279.6 kB / 0.5438 GB, free: 64.09 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005399/0.5444, allocations: 5.755 MB / 0.5494 GB, free: 58.1 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008701/0.5453, allocations: 51.86 kB / 0.5495 GB, free: 58.05 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001002/0.5454, allocations: 55.98 kB / 0.5495 GB, free: 58 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (134): * Single equations (assignments): 130 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,76.0%) 23,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001973/0.5456, allocations: 136.7 kB / 0.5497 GB, free: 57.86 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001825/0.5458, allocations: 126.4 kB / 0.5498 GB, free: 57.73 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003119/0.5489, allocations: 2.1 MB / 0.5519 GB, free: 55.61 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.748e-06/0.549, allocations: 12 kB / 0.5519 GB, free: 55.6 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.18e-05/0.549, allocations: 8 kB / 0.5519 GB, free: 55.59 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.212e-05/0.549, allocations: 7.984 kB / 0.5519 GB, free: 55.59 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006023/0.555, allocations: 4.062 MB / 0.5558 GB, free: 51.46 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.43e-06/0.5551, allocations: 4 kB / 0.5558 GB, free: 51.46 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000752/0.5558, allocations: 180.1 kB / 0.556 GB, free: 51.29 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001752/0.5576, allocations: 0.6947 MB / 0.5567 GB, free: 50.58 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.379e-05/0.5577, allocations: 15.98 kB / 0.5567 GB, free: 50.56 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006369/0.5641, allocations: 7.382 MB / 0.5639 GB, free: 42.84 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.468e-06/0.5641, allocations: 7.938 kB / 0.5639 GB, free: 42.83 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003922/0.568, allocations: 3.216 MB / 0.5671 GB, free: 39.49 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000608/0.5686, allocations: 343.4 kB / 0.5674 GB, free: 39.13 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002073/0.5689, allocations: 11.98 kB / 0.5674 GB, free: 39.12 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007944/0.5697, allocations: 55.94 kB / 0.5675 GB, free: 39.07 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001487/0.5698, allocations: 76.8 kB / 0.5675 GB, free: 38.99 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.036e-05/0.5699, allocations: 32 kB / 0.5676 GB, free: 38.96 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0007558/0.5707, allocations: 0.6513 MB / 0.5682 GB, free: 38.3 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001201/0.5719, allocations: 395.9 kB / 0.5686 GB, free: 37.91 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 7 (aimc.inertiaRotor.phi,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],vfController.x,loadInertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (85): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(5,84.0%) 23,(1,100.0%) 1,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003876/0.5723, allocations: 286.8 kB / 0.5689 GB, free: 37.65 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002568/0.5748, allocations: 2.079 MB / 0.5709 GB, free: 35.51 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.5749, allocations: 4.188 kB / 0.5709 GB, free: 35.5 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00181/0.5767, allocations: 1.369 MB / 0.5722 GB, free: 34.09 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001197/0.5779, allocations: 268.2 kB / 0.5725 GB, free: 33.83 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004894/0.5828, allocations: 3.269 MB / 0.5757 GB, free: 30.48 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001207/0.584, allocations: 1.754 MB / 0.5774 GB, free: 28.7 MB / 378.7 MB Notification: Performance of SimCode: time 6.72e-07/0.584, allocations: 0 / 0.5774 GB, free: 28.7 MB / 378.7 MB Notification: Performance of Templates: time 0.02873/0.6128, allocations: 20.68 MB / 0.5976 GB, free: 8.25 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_Inverter/IMC_Inverter.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches