Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_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.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smpmE.is.1.|smpmE.is.2.|smpmE.idq_dr.1.|smpmE.idq_rr.2.|smpmE.idq_sr.1.|smpmE.idq_sr.2.|smpmM.is.1.|smpmM.is.2.|smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|vfController.x",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smpmE.is.1.|smpmE.is.2.|smpmE.idq_dr.1.|smpmE.idq_rr.2.|smpmE.idq_sr.1.|smpmE.idq_sr.2.|smpmM.is.1.|smpmM.is.2.|smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|vfController.x",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_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.001093/0.001093, allocations: 188 kB / 8.141 MB, free: 2.211 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.168/1.168, allocations: 221.4 MB / 230 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.0009006/0.0009006, allocations: 96.86 kB / 280.8 MB, free: 1.266 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 9.557e-06/9.598e-06, allocations: 4 kB / 336.5 MB, free: 9.504 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1958/0.1958, allocations: 50.39 MB / 386.9 MB, free: 38.01 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.257/0.4528, allocations: 130.7 MB / 0.5055 GB, free: 106.1 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002636/0.4532, allocations: 92.02 kB / 0.5056 GB, free: 106.1 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.2661/0.7192, allocations: 122.7 MB / 0.6254 GB, free: 14.94 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000448/0.7197, allocations: 139.8 kB / 0.6256 GB, free: 14.8 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.01668/0.7364, allocations: 5.141 MB / 0.6306 GB, free: 9.594 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.2e-05/0.7365, allocations: 8.031 kB / 0.6306 GB, free: 9.586 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007523/0.744, allocations: 1.027 MB / 0.6316 GB, free: 8.551 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01109/0.7551, allocations: 4.612 MB / 0.6361 GB, free: 3.859 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002198/0.7554, allocations: 180 kB / 0.6363 GB, free: 3.684 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001041/0.7564, allocations: 323.8 kB / 0.6366 GB, free: 3.367 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009554/0.766, allocations: 5.184 MB / 0.6416 GB, free: 14.18 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01/0.776, allocations: 6.107 MB / 0.6476 GB, free: 7.867 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000129/0.7761, allocations: 19.89 kB / 0.6476 GB, free: 7.848 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004152/0.7766, allocations: 7.984 kB / 0.6476 GB, free: 7.84 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002126/0.7768, allocations: 254.5 kB / 0.6479 GB, free: 7.59 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1701/0.9469, allocations: 21.6 MB / 0.669 GB, free: 80.48 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002464/0.9494, allocations: 1.819 MB / 0.6707 GB, free: 80.46 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002645/0.9521, allocations: 2.174 MB / 0.6729 GB, free: 80.44 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01133/0.9634, allocations: 6.592 MB / 0.6793 GB, free: 79.54 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.499e-05/0.9635, allocations: 63.58 kB / 0.6794 GB, free: 79.5 MB / 426.7 MB Notification: Performance of pre-optimization done (n=267): time 4.499e-06/0.9635, allocations: 2.953 kB / 0.6794 GB, free: 79.5 MB / 426.7 MB Notification: Performance of matching and sorting (n=294): time 0.01553/0.979, allocations: 9.181 MB / 0.6883 GB, free: 77.96 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.77e-05/0.9791, allocations: 78.47 kB / 0.6884 GB, free: 77.89 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002906/0.982, allocations: 2.228 MB / 0.6906 GB, free: 77.66 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002019/0.9822, allocations: 29.58 kB / 0.6906 GB, free: 77.63 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007892/0.983, allocations: 1.967 MB / 0.6925 GB, free: 76.8 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005675/0.9836, allocations: 0.9691 MB / 0.6935 GB, free: 76.2 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001615/0.9838, allocations: 0 / 0.6935 GB, free: 76.2 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001523/0.9839, allocations: 448.8 kB / 0.6939 GB, free: 75.89 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001767/0.9857, allocations: 1.457 MB / 0.6953 GB, free: 75.88 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002116/0.9878, allocations: 2.424 MB / 0.6977 GB, free: 74.75 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002631/0.9904, allocations: 1.945 MB / 0.6996 GB, free: 74.71 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.382e-05/0.9905, allocations: 9.719 kB / 0.6996 GB, free: 74.71 MB / 426.7 MB Notification: Performance of matching and sorting (n=455) (initialization): time 0.007345/0.9978, allocations: 4.877 MB / 0.7044 GB, free: 74.27 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.461e-05/0.9979, allocations: 3.688 kB / 0.7044 GB, free: 74.27 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.431e-05/0.9979, allocations: 35.09 kB / 0.7044 GB, free: 74.27 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001596/0.9995, allocations: 0.7213 MB / 0.7051 GB, free: 74.22 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002982/1.003, allocations: 0.8062 MB / 0.7059 GB, free: 74.22 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007595/1.01, allocations: 9.029 MB / 0.7147 GB, free: 69.23 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002804/1.013, allocations: 115 kB / 0.7148 GB, free: 69.22 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002975/1.013, allocations: 155.6 kB / 0.715 GB, free: 69.22 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 139 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (418): * Single equations (assignments): 412 * 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%) 23,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004933/1.014, allocations: 199.3 kB / 0.7152 GB, free: 69.1 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004883/1.014, allocations: 332.4 kB / 0.7155 GB, free: 68.93 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006655/1.021, allocations: 4.475 MB / 0.7199 GB, free: 68.48 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.913e-05/1.021, allocations: 29.38 kB / 0.7199 GB, free: 68.48 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.395e-05/1.021, allocations: 11.16 kB / 0.7199 GB, free: 68.48 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.325e-05/1.021, allocations: 16.36 kB / 0.7199 GB, free: 68.48 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01295/1.034, allocations: 9.327 MB / 0.729 GB, free: 67.4 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.147e-06/1.034, allocations: 3.781 kB / 0.729 GB, free: 67.4 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00195/1.036, allocations: 476.9 kB / 0.7295 GB, free: 67.4 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002225/1.038, allocations: 0.945 MB / 0.7304 GB, free: 67.31 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001898/1.038, allocations: 31.73 kB / 0.7304 GB, free: 67.3 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01257/1.051, allocations: 14.86 MB / 0.7449 GB, free: 56.01 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.292e-06/1.051, allocations: 3.906 kB / 0.7449 GB, free: 56.01 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008998/1.06, allocations: 6.888 MB / 0.7517 GB, free: 52.63 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001557/1.062, allocations: 0.7229 MB / 0.7524 GB, free: 52.18 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005702/1.062, allocations: 18.81 kB / 0.7524 GB, free: 52.17 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001741/1.064, allocations: 101.9 kB / 0.7525 GB, free: 52.17 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002814/1.064, allocations: 165.5 kB / 0.7526 GB, free: 52.14 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001757/1.064, allocations: 89.89 kB / 0.7527 GB, free: 52.12 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.002077/1.066, allocations: 1.628 MB / 0.7543 GB, free: 51.45 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003437/1.07, allocations: 0.9702 MB / 0.7553 GB, free: 51.43 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 13 (vfController.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpmE.inertiaRotor.w,smpmE.idq_sr[1],smpmE.idq_sr[2],smpmE.idq_rr[2],smpmE.idq_dr[1],loadInertiaM.phi,loadInertiaE.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (235): * Single equations (assignments): 228 * 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%) 23,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007735/1.071, allocations: 494.2 kB / 0.7557 GB, free: 51.3 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005829/1.077, allocations: 4.331 MB / 0.76 GB, free: 49.44 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/1.077, allocations: 2.125 kB / 0.76 GB, free: 49.44 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003585/1.08, allocations: 2.737 MB / 0.7626 GB, free: 48.07 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003181/1.083, allocations: 0.6614 MB / 0.7633 GB, free: 47.91 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01479/1.098, allocations: 8.443 MB / 0.7715 GB, free: 44.53 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004166/1.102, allocations: 3.768 MB / 0.7752 GB, free: 42.15 MB / 426.7 MB Notification: Performance of SimCode: time 1.142e-06/1.102, allocations: 0 / 0.7752 GB, free: 42.15 MB / 426.7 MB Notification: Performance of Templates: time 0.07605/1.178, allocations: 49.73 MB / 0.8238 GB, free: 12.02 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches