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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001435/0.001435, allocations: 117.7 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001373/0.001374, allocations: 204.8 kB / 19.4 MB, free: 3.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.392/1.392, allocations: 227.4 MB / 247.6 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001157/0.001157, allocations: 59.91 kB / 359.4 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2639/0.2651, allocations: 50.53 MB / 409.9 MB, free: 1.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter): time 0.02194/0.287, allocations: 20.93 MB / 430.9 MB, free: 12.56 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01261/0.2997, allocations: 6.176 MB / 437 MB, free: 6.367 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00452/0.3043, allocations: 139.4 kB / 437.2 MB, free: 6.23 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004702/0.309, allocations: 1.366 MB / 438.6 MB, free: 4.855 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006743/0.3158, allocations: 1.891 MB / 440.4 MB, free: 2.953 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003684/0.3195, allocations: 1.278 MB / 441.7 MB, free: 1.68 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008526/0.3281, allocations: 6.165 MB / 447.9 MB, free: 11.48 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00722/0.3353, allocations: 5.439 MB / 453.3 MB, free: 5.957 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004691/0.3401, allocations: 2.87 MB / 456.2 MB, free: 3.078 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006014/0.3461, allocations: 3.499 MB / 459.7 MB, free: 15.57 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001945/0.3481, allocations: 0.7812 MB / 460.5 MB, free: 14.79 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003048/0.3512, allocations: 1.085 MB / 461.6 MB, free: 13.7 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002231/0.3534, allocations: 1.944 MB / 463.5 MB, free: 11.75 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006138/0.3596, allocations: 3.364 MB / 466.9 MB, free: 8.371 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01239/0.372, allocations: 10.36 MB / 477.2 MB, free: 13.98 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.063e-06/0.3721, allocations: 0 / 477.2 MB, free: 13.98 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.3721, allocations: 0 / 477.2 MB, free: 13.98 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002585/0.3723, allocations: 4 kB / 477.2 MB, free: 13.98 MB / 398.1 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.01762/0.39, allocations: 6.619 MB / 483.8 MB, free: 7.277 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.938e-05/0.39, allocations: 12.03 kB / 483.9 MB, free: 7.266 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005316/0.3953, allocations: 1.017 MB / 484.9 MB, free: 6.242 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007353/0.4027, allocations: 3.587 MB / 488.5 MB, free: 2.578 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000355/0.4031, allocations: 386.6 kB / 488.8 MB, free: 2.199 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001406/0.4045, allocations: 0.5038 MB / 489.3 MB, free: 1.695 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01431/0.4189, allocations: 6.779 MB / 496.1 MB, free: 10.85 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001311/0.419, allocations: 11.91 kB / 496.1 MB, free: 10.84 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005855/0.4196, allocations: 208 kB / 496.3 MB, free: 10.63 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002353/0.4199, allocations: 238.2 kB / 496.6 MB, free: 10.4 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01174/0.4316, allocations: 5.763 MB / 0.4906 GB, free: 4.625 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03629/0.4679, allocations: 20.92 MB / 0.511 GB, free: 15.19 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008788/0.4768, allocations: 8.808 MB / 0.5196 GB, free: 5.387 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003796/0.4806, allocations: 2.202 MB / 0.5217 GB, free: 3.172 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01065/0.4913, allocations: 6.183 MB / 0.5278 GB, free: 12.79 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.651e-05/0.4914, allocations: 60.5 kB / 0.5278 GB, free: 12.71 MB / 462.1 MB Notification: Performance of pre-optimization done (n=205): time 4.207e-06/0.4914, allocations: 4 kB / 0.5278 GB, free: 12.71 MB / 462.1 MB Notification: Performance of matching and sorting (n=222): time 0.02107/0.5124, allocations: 10.43 MB / 0.538 GB, free: 2.031 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.494e-05/0.5125, allocations: 73.41 kB / 0.5381 GB, free: 1.949 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2182/0.7307, allocations: 2.917 MB / 0.541 GB, free: 120.3 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004051/0.7312, allocations: 63.95 kB / 0.541 GB, free: 120.3 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001857/0.733, allocations: 2.368 MB / 0.5433 GB, free: 119.3 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008012/0.7339, allocations: 0.7725 MB / 0.5441 GB, free: 118.7 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008024/0.7347, allocations: 0.5149 MB / 0.5446 GB, free: 118.4 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.999e-05/0.7347, allocations: 307 kB / 0.5449 GB, free: 118.1 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001982/0.7367, allocations: 1.268 MB / 0.5461 GB, free: 117.7 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002037/0.7388, allocations: 2.173 MB / 0.5482 GB, free: 116.1 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003886/0.7427, allocations: 3.673 MB / 0.5518 GB, free: 113.8 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-05/0.7427, allocations: 7.812 kB / 0.5518 GB, free: 113.8 MB / 462.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.006519/0.7492, allocations: 4.458 MB / 0.5562 GB, free: 111.9 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.424e-05/0.7493, allocations: 23.28 kB / 0.5562 GB, free: 111.9 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.633e-05/0.7493, allocations: 31.03 kB / 0.5562 GB, free: 111.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001034/0.7504, allocations: 0.5271 MB / 0.5567 GB, free: 111.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002279/0.7527, allocations: 0.6842 MB / 0.5574 GB, free: 111.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006801/0.7595, allocations: 10.34 MB / 0.5675 GB, free: 102.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002683/0.7622, allocations: 179.7 kB / 0.5677 GB, free: 102.9 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003166/0.7625, allocations: 128.3 kB / 0.5678 GB, free: 102.9 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 129 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (345): * Single equations (assignments): 338 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(3,11,100.0%), (1,6,100.0%), (1,1,100.0%), (1,1,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002427/0.765, allocations: 1.526 MB / 0.5693 GB, free: 102 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006884/0.7657, allocations: 316.5 kB / 0.5696 GB, free: 101.8 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00558/0.7713, allocations: 3.9 MB / 0.5734 GB, free: 98.43 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.719e-05/0.7713, allocations: 20 kB / 0.5734 GB, free: 98.41 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.346e-05/0.7713, allocations: 8 kB / 0.5734 GB, free: 98.4 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.282e-05/0.7714, allocations: 12.56 kB / 0.5735 GB, free: 98.39 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.012/0.7834, allocations: 8.511 MB / 0.5818 GB, free: 89.75 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.034e-05/0.7834, allocations: 4 kB / 0.5818 GB, free: 89.75 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001499/0.7849, allocations: 375.5 kB / 0.5821 GB, free: 89.38 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001672/0.7866, allocations: 0.7487 MB / 0.5829 GB, free: 88.61 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001781/0.7868, allocations: 63.97 kB / 0.5829 GB, free: 88.55 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01095/0.7978, allocations: 16.76 MB / 0.5993 GB, free: 70.71 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.7978, allocations: 4 kB / 0.5993 GB, free: 70.71 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007374/0.8052, allocations: 5.574 MB / 0.6047 GB, free: 65 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001459/0.8067, allocations: 0.6493 MB / 0.6054 GB, free: 64.32 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004283/0.8071, allocations: 55.98 kB / 0.6054 GB, free: 64.27 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001471/0.8086, allocations: 131.9 kB / 0.6055 GB, free: 64.14 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003771/0.809, allocations: 173.6 kB / 0.6057 GB, free: 63.97 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001193/0.8091, allocations: 63.98 kB / 0.6058 GB, free: 63.91 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002396/0.8115, allocations: 1.972 MB / 0.6077 GB, free: 61.94 MB / 462.1 MB Notification: Performance of sort global known variables: time 9.02e-07/0.8115, allocations: 0 / 0.6077 GB, free: 61.94 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002948/0.8145, allocations: 0.9477 MB / 0.6086 GB, free: 60.99 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (182): * Single equations (assignments): 174 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(1,5,100.0%), (3,11,100.0%), (1,6,100.0%), (1,1,100.0%), (2,1,100.0%), (1,1,100.0%), (1,8,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005299/0.815, allocations: 253.7 kB / 0.6089 GB, free: 60.74 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005087/0.8201, allocations: 3.981 MB / 0.6128 GB, free: 56.67 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.743e-06/0.8202, allocations: 1.938 kB / 0.6128 GB, free: 56.67 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003401/0.8236, allocations: 2.673 MB / 0.6154 GB, free: 53.9 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004882/0.8285, allocations: 0.8559 MB / 0.6162 GB, free: 53.06 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01691/0.8454, allocations: 9.486 MB / 0.6255 GB, free: 43.53 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00224/0.8477, allocations: 3.23 MB / 0.6286 GB, free: 40.27 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001054/0.8488, allocations: 247.4 kB / 0.6289 GB, free: 40.02 MB / 462.1 MB Notification: Performance of SimCode: time 1.263e-06/0.8488, allocations: 0 / 0.6289 GB, free: 40.02 MB / 462.1 MB Notification: Performance of Templates: time 0.4208/1.27, allocations: 251.9 MB / 0.8749 GB, free: 71.53 MB / 0.5294 GB 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches