Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_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 trunk/package.mo): time 0.001856/0.001857, allocations: 200.4 kB / 8.536 MB, free: 1.773 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.278/1.278, allocations: 225.5 MB / 234.4 MB, free: 3.398 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009206/0.0009205, allocations: 94.72 kB / 286.3 MB, free: 5.25 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 6.492e-06/6.512e-06, allocations: 0 / 343.2 MB, free: 8.723 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09596/0.09598, allocations: 51.47 MB / 394.6 MB, free: 5.203 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3081/0.4041, allocations: 126.5 MB / 0.5089 GB, free: 15.66 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002805/0.4044, allocations: 89.62 kB / 0.509 GB, free: 15.62 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.4922/0.8967, allocations: 117.7 MB / 0.6239 GB, free: 75.51 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0005119/0.8972, allocations: 135.9 kB / 0.624 GB, free: 75.48 MB / 442.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.01457/0.9118, allocations: 4.934 MB / 0.6289 GB, free: 73.55 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.96e-05/0.9119, allocations: 19.44 kB / 0.6289 GB, free: 73.55 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005714/0.9176, allocations: 0.9637 MB / 0.6298 GB, free: 73.23 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01236/0.93, allocations: 4.447 MB / 0.6342 GB, free: 71.97 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006076/0.9307, allocations: 166.5 kB / 0.6343 GB, free: 71.97 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002116/0.9328, allocations: 313.2 kB / 0.6346 GB, free: 71.96 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01385/0.9467, allocations: 5.001 MB / 0.6395 GB, free: 69.86 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01437/0.9611, allocations: 5.88 MB / 0.6452 GB, free: 67.25 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001463/0.9613, allocations: 19.47 kB / 0.6453 GB, free: 67.24 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005105/0.9618, allocations: 4 kB / 0.6453 GB, free: 67.24 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002361/0.962, allocations: 237.5 kB / 0.6455 GB, free: 67.22 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03884/1.001, allocations: 20.35 MB / 0.6654 GB, free: 56.42 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003043/1.004, allocations: 1.735 MB / 0.6671 GB, free: 55.76 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003137/1.007, allocations: 2.125 MB / 0.6691 GB, free: 55 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01165/1.019, allocations: 6.558 MB / 0.6755 GB, free: 51.56 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.12e-05/1.019, allocations: 62.22 kB / 0.6756 GB, free: 51.5 MB / 442.7 MB Notification: Performance of pre-optimization done (n=250): time 6.903e-06/1.019, allocations: 4 kB / 0.6756 GB, free: 51.49 MB / 442.7 MB Notification: Performance of matching and sorting (n=274): time 0.01961/1.039, allocations: 8.757 MB / 0.6841 GB, free: 47.66 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.789e-05/1.039, allocations: 82.69 kB / 0.6842 GB, free: 47.59 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003808/1.042, allocations: 2.072 MB / 0.6863 GB, free: 46.76 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004954/1.043, allocations: 28.83 kB / 0.6863 GB, free: 46.73 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009743/1.044, allocations: 1.867 MB / 0.6881 GB, free: 45.38 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007926/1.045, allocations: 0.899 MB / 0.689 GB, free: 44.67 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001582/1.045, allocations: 0 / 0.689 GB, free: 44.67 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001957/1.045, allocations: 433.7 kB / 0.6894 GB, free: 44.31 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002001/1.047, allocations: 1.392 MB / 0.6908 GB, free: 43.76 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002579/1.05, allocations: 2.272 MB / 0.693 GB, free: 41.92 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002715/1.052, allocations: 1.845 MB / 0.6948 GB, free: 40.3 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.664e-05/1.052, allocations: 8 kB / 0.6948 GB, free: 40.29 MB / 442.7 MB Notification: Performance of matching and sorting (n=421) (initialization): time 0.007488/1.06, allocations: 4.646 MB / 0.6993 GB, free: 36.11 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.368e-05/1.06, allocations: 5.875 kB / 0.6993 GB, free: 36.11 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.5e-05/1.06, allocations: 28 kB / 0.6994 GB, free: 36.08 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00172/1.062, allocations: 0.7211 MB / 0.7001 GB, free: 35.47 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003353/1.065, allocations: 0.7455 MB / 0.7008 GB, free: 34.83 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008166/1.073, allocations: 8.713 MB / 0.7093 GB, free: 26.29 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003442/1.077, allocations: 107.3 kB / 0.7094 GB, free: 26.21 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004876/1.077, allocations: 142.5 kB / 0.7095 GB, free: 26.07 MB / 442.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.0005855/1.078, allocations: 197.5 kB / 0.7097 GB, free: 25.88 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006856/1.079, allocations: 300.2 kB / 0.71 GB, free: 25.58 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007125/1.086, allocations: 4.288 MB / 0.7142 GB, free: 21.86 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-05/1.086, allocations: 24 kB / 0.7142 GB, free: 21.83 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.739e-05/1.086, allocations: 12 kB / 0.7142 GB, free: 21.82 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.57e-05/1.086, allocations: 13.36 kB / 0.7142 GB, free: 21.82 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01544/1.101, allocations: 8.824 MB / 0.7229 GB, free: 14.43 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.203e-05/1.101, allocations: 4 kB / 0.7229 GB, free: 14.43 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002017/1.103, allocations: 439.2 kB / 0.7233 GB, free: 14.06 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002559/1.106, allocations: 0.927 MB / 0.7242 GB, free: 13.3 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003038/1.106, allocations: 31.45 kB / 0.7242 GB, free: 13.27 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1991/1.305, allocations: 14.44 MB / 0.7383 GB, free: 111.7 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.863e-06/1.306, allocations: 7.25 kB / 0.7383 GB, free: 111.7 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009415/1.315, allocations: 6.473 MB / 0.7446 GB, free: 110.7 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001902/1.317, allocations: 0.6812 MB / 0.7453 GB, free: 110.6 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007568/1.318, allocations: 19.45 kB / 0.7453 GB, free: 110.6 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001816/1.319, allocations: 103.8 kB / 0.7454 GB, free: 110.6 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002974/1.32, allocations: 147.6 kB / 0.7456 GB, free: 110.6 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001757/1.32, allocations: 77.52 kB / 0.7456 GB, free: 110.6 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.002459/1.322, allocations: 1.535 MB / 0.7471 GB, free: 110.5 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004224/1.327, allocations: 0.9184 MB / 0.748 GB, free: 110.5 MB / 442.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.001008/1.328, allocations: 456.9 kB / 0.7485 GB, free: 110.4 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005852/1.334, allocations: 4.143 MB / 0.7525 GB, free: 109.7 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.192e-06/1.334, allocations: 0 / 0.7525 GB, free: 109.7 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003859/1.337, allocations: 2.631 MB / 0.7551 GB, free: 109 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003244/1.341, allocations: 0.5823 MB / 0.7557 GB, free: 109 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0146/1.355, allocations: 8.094 MB / 0.7636 GB, free: 107.3 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003441/1.359, allocations: 3.629 MB / 0.7671 GB, free: 106.4 MB / 442.7 MB Notification: Performance of SimCode: time 6.61e-07/1.359, allocations: 0 / 0.7671 GB, free: 106.4 MB / 442.7 MB Notification: Performance of Templates: time 0.08058/1.439, allocations: 46.05 MB / 0.8121 GB, free: 103.8 MB / 442.7 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.sim & ./Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches