Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_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.SynchronousMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia.phi|loadInertia.w|smr.is.1.|smr.is.2.|smr.idq_rr.1.|smr.idq_rr.2.|smr.idq_sr.1.|smr.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia.phi|loadInertia.w|smr.is.1.|smr.is.2.|smr.idq_rr.1.|smr.idq_rr.2.|smr.idq_sr.1.|smr.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_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.001732/0.001732, allocations: 183.6 kB / 8.135 MB, free: 2.219 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.194/1.194, allocations: 221.4 MB / 229.9 MB, free: 3.082 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.0009006/0.0009006, allocations: 102.4 kB / 280.8 MB, free: 1.277 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.11e-06/5.2e-06, allocations: 0 / 336.5 MB, free: 9.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1766/0.1766, allocations: 50.39 MB / 386.9 MB, free: 38.01 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.106/0.2827, allocations: 104.9 MB / 491.9 MB, free: 13.82 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002297/0.283, allocations: 84.53 kB / 491.9 MB, free: 13.74 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.2456/0.5286, allocations: 45.48 MB / 0.5248 GB, free: 84.67 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001267/0.5287, allocations: 67.88 kB / 0.5249 GB, free: 84.6 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: 553 * Number of variables: 553 Notification: Performance of Generate backend data structure: time 0.003893/0.5327, allocations: 2.247 MB / 0.5271 GB, free: 82.3 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.586e-05/0.5327, allocations: 8.031 kB / 0.5271 GB, free: 82.29 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007624/0.5335, allocations: 296.8 kB / 0.5274 GB, free: 82 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002884/0.5364, allocations: 1.611 MB / 0.5289 GB, free: 80.35 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.612e-05/0.5364, allocations: 72 kB / 0.529 GB, free: 80.28 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000284/0.5367, allocations: 131.9 kB / 0.5291 GB, free: 80.15 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003085/0.5398, allocations: 2.043 MB / 0.5311 GB, free: 78.1 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003305/0.5431, allocations: 2.421 MB / 0.5335 GB, free: 75.54 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.909e-05/0.5432, allocations: 11.98 kB / 0.5335 GB, free: 75.53 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001751/0.5434, allocations: 3.906 kB / 0.5335 GB, free: 75.53 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.381e-05/0.5435, allocations: 108.1 kB / 0.5336 GB, free: 75.42 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01102/0.5545, allocations: 8.231 MB / 0.5417 GB, free: 67.03 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001267/0.5558, allocations: 0.8601 MB / 0.5425 GB, free: 66.16 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001021/0.5569, allocations: 0.8429 MB / 0.5433 GB, free: 65.32 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002714/0.5571, allocations: 215.1 kB / 0.5435 GB, free: 65.07 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.191e-05/0.5572, allocations: 47.5 kB / 0.5436 GB, free: 65.02 MB / 378.7 MB Notification: Performance of pre-optimization done (n=106): time 3.136e-06/0.5572, allocations: 3.938 kB / 0.5436 GB, free: 65.01 MB / 378.7 MB Notification: Performance of matching and sorting (n=128): time 0.008051/0.5652, allocations: 4.814 MB / 0.5483 GB, free: 60.16 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.133e-05/0.5653, allocations: 72.7 kB / 0.5483 GB, free: 60.08 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001258/0.5666, allocations: 1.033 MB / 0.5494 GB, free: 59.04 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.167e-05/0.5667, allocations: 25.7 kB / 0.5494 GB, free: 59.01 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002713/0.5669, allocations: 0.8215 MB / 0.5502 GB, free: 58.17 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002264/0.5672, allocations: 429.6 kB / 0.5506 GB, free: 57.75 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.385e-05/0.5673, allocations: 0 / 0.5506 GB, free: 57.75 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.539e-05/0.5673, allocations: 369.8 kB / 0.5509 GB, free: 57.38 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008178/0.5682, allocations: 0.7029 MB / 0.5516 GB, free: 56.68 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009597/0.5691, allocations: 1.06 MB / 0.5527 GB, free: 55.46 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001047/0.5702, allocations: 0.8806 MB / 0.5535 GB, free: 54.59 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.44e-06/0.5702, allocations: 4 kB / 0.5535 GB, free: 54.58 MB / 378.7 MB Notification: Performance of matching and sorting (n=189) (initialization): time 0.003435/0.5736, allocations: 2.393 MB / 0.5559 GB, free: 52.18 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.43e-05/0.5737, allocations: 4 kB / 0.5559 GB, free: 52.18 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.471e-05/0.5737, allocations: 12.25 kB / 0.5559 GB, free: 52.16 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001371/0.5751, allocations: 0.5813 MB / 0.5565 GB, free: 51.57 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001282/0.5764, allocations: 331.5 kB / 0.5568 GB, free: 51.25 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005654/0.582, allocations: 5.794 MB / 0.5624 GB, free: 45.22 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001285/0.5833, allocations: 63.84 kB / 0.5625 GB, free: 45.16 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000128/0.5835, allocations: 63.98 kB / 0.5625 GB, free: 45.09 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (160): * Single equations (assignments): 157 * 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: 2 * 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: 2 {(6,75.0%) 22,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002534/0.5837, allocations: 144.5 kB / 0.5627 GB, free: 44.95 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002263/0.584, allocations: 150.1 kB / 0.5628 GB, free: 44.8 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003411/0.5874, allocations: 2.218 MB / 0.565 GB, free: 42.57 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-05/0.5874, allocations: 12 kB / 0.565 GB, free: 42.55 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.006e-05/0.5874, allocations: 8 kB / 0.565 GB, free: 42.55 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.329e-05/0.5874, allocations: 11.91 kB / 0.565 GB, free: 42.54 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006598/0.5941, allocations: 4.353 MB / 0.5693 GB, free: 38.12 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.232e-06/0.5941, allocations: 4 kB / 0.5693 GB, free: 38.12 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009502/0.595, allocations: 216 kB / 0.5695 GB, free: 37.91 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001537/0.5966, allocations: 0.6232 MB / 0.5701 GB, free: 37.28 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.834e-05/0.5967, allocations: 19.92 kB / 0.5701 GB, free: 37.26 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006759/0.6035, allocations: 7.425 MB / 0.5774 GB, free: 29.49 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.6e-06/0.6035, allocations: 3.984 kB / 0.5774 GB, free: 29.48 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004246/0.6077, allocations: 3.426 MB / 0.5807 GB, free: 25.97 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007496/0.6085, allocations: 391.1 kB / 0.5811 GB, free: 25.57 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002378/0.6088, allocations: 7.984 kB / 0.5811 GB, free: 25.56 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008935/0.6097, allocations: 67.92 kB / 0.5812 GB, free: 25.5 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001504/0.6098, allocations: 68.89 kB / 0.5812 GB, free: 25.43 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.656e-05/0.6099, allocations: 39.98 kB / 0.5813 GB, free: 25.39 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0009328/0.6109, allocations: 0.7782 MB / 0.582 GB, free: 24.61 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001405/0.6123, allocations: 443.9 kB / 0.5824 GB, free: 24.18 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 7 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],vfController.x,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (100): * Single equations (assignments): 97 * 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: 3 {(6,72.2%) 22,(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.0004085/0.6127, allocations: 299.1 kB / 0.5827 GB, free: 23.9 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002718/0.6154, allocations: 2.17 MB / 0.5848 GB, free: 21.69 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.6154, allocations: 0 / 0.5848 GB, free: 21.69 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0019/0.6173, allocations: 1.356 MB / 0.5862 GB, free: 20.3 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001343/0.6187, allocations: 290.2 kB / 0.5865 GB, free: 20.02 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005757/0.6245, allocations: 3.703 MB / 0.5901 GB, free: 16.23 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001443/0.6259, allocations: 1.958 MB / 0.592 GB, free: 14.24 MB / 378.7 MB Notification: Performance of SimCode: time 6.81e-07/0.6259, allocations: 3.938 kB / 0.592 GB, free: 14.24 MB / 378.7 MB Notification: Performance of Templates: time 0.03457/0.6605, allocations: 22.71 MB / 0.6142 GB, free: 7.793 MB / 394.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches