Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.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.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smrE.is.1.|smrE.is.2.|smrE.idq_rr.1.|smrE.idq_rr.2.|smrE.idq_sr.1.|smrE.idq_sr.2.|smrM.is.1.|smrM.is.2.|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smrM.stator.strayReluctance.port_p.Phi.im|smrM.stator.strayReluctance.port_p.Phi.re|vfController.x",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smrE.is.1.|smrE.is.2.|smrE.idq_rr.1.|smrE.idq_rr.2.|smrE.idq_sr.1.|smrE.idq_sr.2.|smrM.is.1.|smrM.is.2.|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smrM.stator.strayReluctance.port_p.Phi.im|smrM.stator.strayReluctance.port_p.Phi.re|vfController.x",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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 3.2.3+maint.om/package.mo): time 0.0009836/0.0009836, allocations: 178.7 kB / 8.476 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.18/1.18, allocations: 205.2 MB / 214.1 MB, free: 5.246 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.0008535/0.0008535, allocations: 90.27 kB / 262.1 MB, free: 5.277 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.661e-06/5.691e-06, allocations: 0 / 315 MB, free: 41.5 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0642/0.06422, allocations: 47.58 MB / 362.6 MB, free: 9.961 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2544/0.3187, allocations: 124.3 MB / 486.9 MB, free: 1.289 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002063/0.3189, allocations: 86.88 kB / 486.9 MB, free: 1.242 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.4138/0.7328, allocations: 114.3 MB / 0.5871 GB, free: 76.63 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002926/0.7331, allocations: 137.5 kB / 0.5873 GB, free: 76.61 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1347 * Number of variables: 1347 Notification: Performance of Generate backend data structure: time 0.009977/0.7431, allocations: 4.894 MB / 0.5921 GB, free: 75.02 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.714e-05/0.7431, allocations: 10.28 kB / 0.5921 GB, free: 75.02 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0044/0.7475, allocations: 0.9563 MB / 0.593 GB, free: 74.72 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009572/0.7571, allocations: 4.417 MB / 0.5973 GB, free: 74.02 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001543/0.7573, allocations: 175.8 kB / 0.5975 GB, free: 74.01 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000863/0.7582, allocations: 308.5 kB / 0.5978 GB, free: 74.01 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008729/0.7669, allocations: 5.006 MB / 0.6027 GB, free: 73.98 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009252/0.7762, allocations: 5.882 MB / 0.6084 GB, free: 73.36 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001202/0.7763, allocations: 13.94 kB / 0.6084 GB, free: 73.36 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004227/0.7768, allocations: 3.594 kB / 0.6084 GB, free: 73.36 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001524/0.7769, allocations: 241.9 kB / 0.6087 GB, free: 73.34 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0309/0.8078, allocations: 20.26 MB / 0.6284 GB, free: 69.16 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002323/0.8102, allocations: 1.726 MB / 0.6301 GB, free: 69.13 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002478/0.8127, allocations: 2.078 MB / 0.6322 GB, free: 68.96 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01104/0.8238, allocations: 6.31 MB / 0.6383 GB, free: 65.8 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.399e-05/0.8239, allocations: 62.78 kB / 0.6384 GB, free: 65.75 MB / 426.7 MB Notification: Performance of pre-optimization done (n=250): time 7.674e-06/0.8239, allocations: 0 / 0.6384 GB, free: 65.75 MB / 426.7 MB Notification: Performance of matching and sorting (n=274): time 0.0163/0.8402, allocations: 8.734 MB / 0.6469 GB, free: 61.95 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.028e-05/0.8403, allocations: 87.69 kB / 0.647 GB, free: 61.88 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002961/0.8432, allocations: 2.068 MB / 0.649 GB, free: 61.04 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003352/0.8436, allocations: 25.7 kB / 0.649 GB, free: 61.01 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007537/0.8444, allocations: 1.858 MB / 0.6509 GB, free: 59.66 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006455/0.845, allocations: 0.9026 MB / 0.6517 GB, free: 58.95 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001463/0.8452, allocations: 0 / 0.6517 GB, free: 58.95 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000151/0.8453, allocations: 445.2 kB / 0.6522 GB, free: 58.58 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00183/0.8472, allocations: 1.388 MB / 0.6535 GB, free: 58.04 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001996/0.8492, allocations: 2.268 MB / 0.6557 GB, free: 56.38 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002551/0.8517, allocations: 1.847 MB / 0.6575 GB, free: 55.65 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.415e-05/0.8517, allocations: 11.69 kB / 0.6575 GB, free: 55.65 MB / 426.7 MB Notification: Performance of matching and sorting (n=421) (initialization): time 0.007364/0.8591, allocations: 4.634 MB / 0.6621 GB, free: 53.97 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.751e-05/0.8592, allocations: 5.5 kB / 0.6621 GB, free: 53.97 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.531e-05/0.8592, allocations: 27.5 kB / 0.6621 GB, free: 53.97 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001669/0.8609, allocations: 0.717 MB / 0.6628 GB, free: 53.75 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003299/0.8642, allocations: 0.749 MB / 0.6635 GB, free: 53.73 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008667/0.8729, allocations: 8.707 MB / 0.672 GB, free: 47.32 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004229/0.8772, allocations: 109 kB / 0.6721 GB, free: 47.31 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001176/0.8784, allocations: 142.5 kB / 0.6723 GB, free: 47.29 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 125 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (385): * Single equations (assignments): 379 * 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: 4 * 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: 4 {(6,72.2%) 22,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007401/0.8792, allocations: 196.2 kB / 0.6725 GB, free: 47.15 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009163/0.8801, allocations: 306.3 kB / 0.6728 GB, free: 46.99 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007575/0.8877, allocations: 4.278 MB / 0.6769 GB, free: 45.24 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.607e-05/0.8877, allocations: 26 kB / 0.677 GB, free: 45.24 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.452e-05/0.8877, allocations: 10.16 kB / 0.677 GB, free: 45.24 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.226e-05/0.8878, allocations: 23.12 kB / 0.677 GB, free: 45.23 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01338/0.9012, allocations: 8.829 MB / 0.6856 GB, free: 37.88 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.417e-06/0.9012, allocations: 4 kB / 0.6856 GB, free: 37.88 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001919/0.9031, allocations: 442.6 kB / 0.686 GB, free: 37.53 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002236/0.9054, allocations: 0.926 MB / 0.6869 GB, free: 36.77 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001912/0.9056, allocations: 31.17 kB / 0.687 GB, free: 36.75 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01136/0.917, allocations: 14.42 MB / 0.7011 GB, free: 22.54 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.921e-06/0.917, allocations: 7.75 kB / 0.7011 GB, free: 22.53 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008174/0.9252, allocations: 6.459 MB / 0.7074 GB, free: 16.5 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001673/0.9269, allocations: 0.6872 MB / 0.708 GB, free: 15.87 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006111/0.9275, allocations: 19.61 kB / 0.7081 GB, free: 15.85 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001645/0.9292, allocations: 102 kB / 0.7082 GB, free: 15.78 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002746/0.9295, allocations: 145.4 kB / 0.7083 GB, free: 15.7 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001831/0.9296, allocations: 79.69 kB / 0.7084 GB, free: 15.62 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.002497/0.9321, allocations: 1.518 MB / 0.7099 GB, free: 14.25 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004188/0.9363, allocations: 0.9047 MB / 0.7107 GB, free: 13.35 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 13 (vfController.x,smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smrE.inertiaRotor.w,smrE.idq_sr[1],smrE.idq_sr[2],smrE.idq_dr[1],smrE.idq_dr[2],loadInertiaM.phi,loadInertiaE.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (218): * Single equations (assignments): 211 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(6,72.2%) 22,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009162/0.9373, allocations: 421.3 kB / 0.7111 GB, free: 13.01 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005733/0.943, allocations: 4.141 MB / 0.7152 GB, free: 9.129 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.691e-06/0.943, allocations: 4 kB / 0.7152 GB, free: 9.125 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003477/0.9465, allocations: 2.63 MB / 0.7178 GB, free: 6.629 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002745/0.9493, allocations: 0.5732 MB / 0.7183 GB, free: 6.18 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01559/0.9649, allocations: 8.103 MB / 0.7262 GB, free: 14.95 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004482/0.9694, allocations: 3.62 MB / 0.7298 GB, free: 12.15 MB / 442.7 MB Notification: Performance of SimCode: time 6.71e-07/0.9694, allocations: 4 kB / 0.7298 GB, free: 12.14 MB / 442.7 MB Notification: Performance of Templates: time 0.2026/1.172, allocations: 45.66 MB / 0.7744 GB, free: 121.1 MB / 442.7 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMR_Inverter/SMR_Inverter.csv","../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches