Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.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.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|vfController.x",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.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.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|vfController.x",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.001392/0.001392, allocations: 182.9 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.201/1.201, allocations: 221.4 MB / 229.9 MB, free: 3.004 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.0009996/0.0009997, allocations: 94.28 kB / 280.8 MB, free: 1.312 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.943e-06/6.973e-06, allocations: 0 / 336.5 MB, free: 9.543 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1988/0.1988, allocations: 50.39 MB / 386.9 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2577/0.4565, allocations: 125.4 MB / 0.5003 GB, free: 105.5 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002625/0.4569, allocations: 90.45 kB / 0.5004 GB, free: 105.5 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.246/0.7029, allocations: 114.6 MB / 0.6124 GB, free: 12.19 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000539/0.7035, allocations: 139.8 kB / 0.6125 GB, free: 12.05 MB / 394.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.01585/0.7193, allocations: 4.913 MB / 0.6173 GB, free: 7.07 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.184e-05/0.7194, allocations: 11.97 kB / 0.6173 GB, free: 7.059 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005795/0.7252, allocations: 0.9534 MB / 0.6182 GB, free: 6.098 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01278/0.738, allocations: 4.422 MB / 0.6226 GB, free: 1.598 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003191/0.7384, allocations: 164 kB / 0.6227 GB, free: 1.438 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001816/0.7402, allocations: 311.8 kB / 0.623 GB, free: 1.133 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01258/0.7528, allocations: 5.007 MB / 0.6279 GB, free: 12.12 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01519/0.768, allocations: 5.878 MB / 0.6336 GB, free: 6.043 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002409/0.7683, allocations: 7.906 kB / 0.6337 GB, free: 6.035 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001163/0.7695, allocations: 4 kB / 0.6337 GB, free: 6.031 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000239/0.7697, allocations: 238.2 kB / 0.6339 GB, free: 5.797 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04197/0.8117, allocations: 20.27 MB / 0.6537 GB, free: 1.051 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1359/0.9476, allocations: 1.719 MB / 0.6554 GB, free: 90.53 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002982/0.9506, allocations: 2.084 MB / 0.6574 GB, free: 90.5 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01002/0.9607, allocations: 6.304 MB / 0.6635 GB, free: 89.7 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.474e-05/0.9607, allocations: 59.31 kB / 0.6636 GB, free: 89.66 MB / 426.7 MB Notification: Performance of pre-optimization done (n=250): time 4.228e-06/0.9607, allocations: 0 / 0.6636 GB, free: 89.66 MB / 426.7 MB Notification: Performance of matching and sorting (n=274): time 0.01461/0.9754, allocations: 8.743 MB / 0.6721 GB, free: 88.61 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.711e-05/0.9754, allocations: 80.44 kB / 0.6722 GB, free: 88.54 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002652/0.9781, allocations: 2.059 MB / 0.6742 GB, free: 88.32 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001634/0.9782, allocations: 31.62 kB / 0.6743 GB, free: 88.29 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007167/0.979, allocations: 1.863 MB / 0.6761 GB, free: 87.5 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005157/0.9795, allocations: 0.9055 MB / 0.677 GB, free: 86.93 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001505/0.9796, allocations: 0 / 0.677 GB, free: 86.93 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001392/0.9798, allocations: 435.4 kB / 0.6774 GB, free: 86.62 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001653/0.9815, allocations: 1.391 MB / 0.6787 GB, free: 86.62 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001968/0.9834, allocations: 2.265 MB / 0.6809 GB, free: 85.6 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002407/0.9858, allocations: 1.847 MB / 0.6827 GB, free: 85.55 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.291e-05/0.9859, allocations: 6.562 kB / 0.6828 GB, free: 85.55 MB / 426.7 MB Notification: Performance of matching and sorting (n=421) (initialization): time 0.006669/0.9925, allocations: 4.645 MB / 0.6873 GB, free: 85.12 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.553e-05/0.9926, allocations: 3.938 kB / 0.6873 GB, free: 85.12 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.473e-05/0.9926, allocations: 27 kB / 0.6873 GB, free: 85.12 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001557/0.9942, allocations: 0.7142 MB / 0.688 GB, free: 85.07 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002818/0.997, allocations: 0.7462 MB / 0.6887 GB, free: 85.07 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007224/1.004, allocations: 8.718 MB / 0.6973 GB, free: 80.16 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00265/1.007, allocations: 110.5 kB / 0.6974 GB, free: 80.15 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003108/1.007, allocations: 139.3 kB / 0.6975 GB, free: 80.15 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.0004715/1.008, allocations: 189.6 kB / 0.6977 GB, free: 80.03 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004656/1.008, allocations: 303.7 kB / 0.698 GB, free: 79.87 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00668/1.015, allocations: 4.279 MB / 0.7021 GB, free: 79.44 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-05/1.015, allocations: 32.12 kB / 0.7022 GB, free: 79.43 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.656e-05/1.015, allocations: 7.094 kB / 0.7022 GB, free: 79.43 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.506e-05/1.015, allocations: 14.3 kB / 0.7022 GB, free: 79.43 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01312/1.028, allocations: 8.836 MB / 0.7108 GB, free: 78.41 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.059e-05/1.028, allocations: 7.688 kB / 0.7108 GB, free: 78.41 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001926/1.03, allocations: 445.2 kB / 0.7113 GB, free: 78.41 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002285/1.032, allocations: 0.9267 MB / 0.7122 GB, free: 78.35 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001774/1.033, allocations: 29.03 kB / 0.7122 GB, free: 78.35 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01157/1.044, allocations: 14.44 MB / 0.7263 GB, free: 69.65 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/1.044, allocations: 3.656 kB / 0.7263 GB, free: 69.65 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009031/1.053, allocations: 6.473 MB / 0.7326 GB, free: 68.11 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001776/1.055, allocations: 0.6838 MB / 0.7333 GB, free: 67.68 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005751/1.056, allocations: 14.94 kB / 0.7333 GB, free: 67.67 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001805/1.057, allocations: 106.3 kB / 0.7334 GB, free: 67.67 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002946/1.058, allocations: 142.8 kB / 0.7335 GB, free: 67.65 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001826/1.058, allocations: 76.38 kB / 0.7336 GB, free: 67.63 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.002323/1.06, allocations: 1.521 MB / 0.7351 GB, free: 67 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003278/1.064, allocations: 0.9036 MB / 0.736 GB, free: 66.98 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.0006909/1.064, allocations: 454.2 kB / 0.7364 GB, free: 66.85 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005566/1.07, allocations: 4.145 MB / 0.7405 GB, free: 65.05 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.119e-06/1.07, allocations: 3.438 kB / 0.7405 GB, free: 65.05 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003437/1.073, allocations: 2.635 MB / 0.743 GB, free: 63.71 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002907/1.076, allocations: 0.5706 MB / 0.7436 GB, free: 63.57 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0136/1.09, allocations: 8.079 MB / 0.7515 GB, free: 60.5 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00334/1.093, allocations: 3.621 MB / 0.755 GB, free: 59.2 MB / 426.7 MB Notification: Performance of SimCode: time 7.42e-07/1.093, allocations: 0 / 0.755 GB, free: 59.2 MB / 426.7 MB Notification: Performance of Templates: time 0.06787/1.161, allocations: 45.7 MB / 0.7996 GB, free: 38.05 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches