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.0007719/0.000772, allocations: 96.17 kB / 17.01 MB, free: 6.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009323/0.0009324, allocations: 193.8 kB / 17.91 MB, free: 5.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.318/1.318, allocations: 227.7 MB / 246.4 MB, free: 9.832 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002218/0.0002219, allocations: 4 kB / 307.1 MB, free: 0.9805 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08302/0.08326, allocations: 51.53 MB / 358.6 MB, free: 13.46 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter): time 0.1686/0.2519, allocations: 18.47 MB / 377.1 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009401/0.2613, allocations: 5.752 MB / 382.9 MB, free: 9.691 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00202/0.2633, allocations: 122.6 kB / 383 MB, free: 9.66 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002388/0.2657, allocations: 1.012 MB / 384 MB, free: 9.219 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003922/0.2697, allocations: 1.567 MB / 385.6 MB, free: 8.285 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002143/0.2718, allocations: 0.8597 MB / 386.4 MB, free: 7.77 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007772/0.2796, allocations: 6.211 MB / 392.6 MB, free: 4.824 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005468/0.2851, allocations: 3.644 MB / 396.3 MB, free: 3.277 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003702/0.2888, allocations: 2.004 MB / 398.3 MB, free: 2.215 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003745/0.2926, allocations: 2.662 MB / 401 MB, free: 0.5977 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006749/0.2933, allocations: 326.8 kB / 401.3 MB, free: 0.5938 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001969/0.2953, allocations: 0.5856 MB / 401.9 MB, free: 468 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001115/0.2964, allocations: 1.362 MB / 403.2 MB, free: 15.5 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001424/0.2978, allocations: 1.135 MB / 404.4 MB, free: 14.78 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007328/0.3052, allocations: 8.408 MB / 412.8 MB, free: 6.352 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.3052, allocations: 0 / 412.8 MB, free: 6.352 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3052, allocations: 0 / 412.8 MB, free: 6.352 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001704/0.3054, allocations: 0 / 412.8 MB, free: 6.352 MB / 318.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.01202/0.3174, allocations: 5.631 MB / 418.4 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.794e-05/0.3174, allocations: 8.031 kB / 418.4 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004757/0.3222, allocations: 1.02 MB / 419.4 MB, free: 15.61 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006198/0.3284, allocations: 3.358 MB / 422.8 MB, free: 12.17 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003216/0.3288, allocations: 398.2 kB / 423.2 MB, free: 11.78 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007497/0.3295, allocations: 0.5115 MB / 423.7 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0116/0.3411, allocations: 6.747 MB / 430.4 MB, free: 4.449 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001042/0.3413, allocations: 11.84 kB / 430.4 MB, free: 4.438 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004456/0.3417, allocations: 215.9 kB / 430.6 MB, free: 4.227 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002184/0.3419, allocations: 242.2 kB / 430.9 MB, free: 3.988 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00979/0.3517, allocations: 5.748 MB / 436.6 MB, free: 14.23 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03125/0.383, allocations: 21.28 MB / 457.9 MB, free: 8.441 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008052/0.3911, allocations: 8.801 MB / 466.7 MB, free: 14.64 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003542/0.3947, allocations: 2.241 MB / 469 MB, free: 12.39 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01018/0.4049, allocations: 6.242 MB / 475.2 MB, free: 5.945 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.376e-05/0.4049, allocations: 60.55 kB / 475.3 MB, free: 5.879 MB / 382.1 MB Notification: Performance of pre-optimization done (n=205): time 3.437e-06/0.4049, allocations: 0 / 475.3 MB, free: 5.879 MB / 382.1 MB Notification: Performance of matching and sorting (n=222): time 0.01974/0.4247, allocations: 10.55 MB / 485.8 MB, free: 11.07 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.087e-05/0.4248, allocations: 73.41 kB / 485.9 MB, free: 10.98 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004324/0.4291, allocations: 2.898 MB / 488.8 MB, free: 8.078 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003062/0.4294, allocations: 65.69 kB / 488.8 MB, free: 8.008 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001653/0.4311, allocations: 2.369 MB / 491.2 MB, free: 5.613 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007566/0.4319, allocations: 0.7664 MB / 492 MB, free: 4.836 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001491/0.432, allocations: 64 kB / 492 MB, free: 4.773 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002193/0.4322, allocations: 416 kB / 492.4 MB, free: 4.359 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002088/0.4343, allocations: 1.275 MB / 493.7 MB, free: 3.082 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002836/0.4372, allocations: 2.175 MB / 495.9 MB, free: 0.5078 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002666/0.4399, allocations: 1.649 MB / 497.5 MB, free: 14.86 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-05/0.4399, allocations: 11.95 kB / 497.6 MB, free: 14.85 MB / 414.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.007085/0.447, allocations: 4.47 MB / 0.4903 GB, free: 10.31 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.636e-05/0.447, allocations: 20 kB / 0.4903 GB, free: 10.29 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.234e-05/0.4471, allocations: 28 kB / 0.4903 GB, free: 10.26 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001185/0.4483, allocations: 0.5324 MB / 0.4908 GB, free: 9.711 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002513/0.4508, allocations: 0.6864 MB / 0.4915 GB, free: 9.023 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008629/0.4595, allocations: 9.495 MB / 0.5008 GB, free: 14.86 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002635/0.4621, allocations: 183.7 kB / 0.5009 GB, free: 14.68 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004254/0.4626, allocations: 128 kB / 0.5011 GB, free: 14.55 MB / 430.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 (linear and non-linear blocks): 2 * Torn equation systems: 5 * 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: 5 {(3,100.0%) 11,(1,100.0%) 6,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00318/0.4658, allocations: 1.524 MB / 0.5026 GB, free: 13.02 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007754/0.4665, allocations: 320.1 kB / 0.5029 GB, free: 12.7 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006973/0.4735, allocations: 3.915 MB / 0.5067 GB, free: 8.684 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.999e-05/0.4735, allocations: 20 kB / 0.5067 GB, free: 8.664 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.399e-05/0.4736, allocations: 19.94 kB / 0.5067 GB, free: 8.645 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.165e-05/0.4736, allocations: 11.95 kB / 0.5067 GB, free: 8.633 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01464/0.4883, allocations: 8.522 MB / 0.5151 GB, free: 15.93 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.949e-06/0.4883, allocations: 4 kB / 0.5151 GB, free: 15.92 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001646/0.4899, allocations: 383.5 kB / 0.5154 GB, free: 15.55 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001843/0.4918, allocations: 0.7476 MB / 0.5162 GB, free: 14.78 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001768/0.492, allocations: 63.97 kB / 0.5162 GB, free: 14.71 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1833/0.6753, allocations: 15.35 MB / 0.5312 GB, free: 134.4 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.129e-06/0.6754, allocations: 6.969 kB / 0.5312 GB, free: 134.4 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009151/0.6845, allocations: 5.599 MB / 0.5367 GB, free: 133.4 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001461/0.686, allocations: 0.6607 MB / 0.5373 GB, free: 133.1 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003949/0.6864, allocations: 57.31 kB / 0.5374 GB, free: 133.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001375/0.6878, allocations: 140.3 kB / 0.5375 GB, free: 133.1 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003595/0.6882, allocations: 170.1 kB / 0.5377 GB, free: 133.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001345/0.6883, allocations: 69.88 kB / 0.5377 GB, free: 133 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002829/0.6911, allocations: 1.951 MB / 0.5396 GB, free: 132.3 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.6912, allocations: 0 / 0.5396 GB, free: 132.3 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002932/0.6941, allocations: 0.9474 MB / 0.5406 GB, free: 132.2 MB / 446.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 (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(1,100.0%) 5,(3,100.0%) 11,(1,100.0%) 6,(1,100.0%) 1,(2,100.0%) 1,(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.0004406/0.6945, allocations: 223.5 kB / 0.5408 GB, free: 132.1 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005826/0.7004, allocations: 3.978 MB / 0.5447 GB, free: 130.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.731e-06/0.7004, allocations: 5.062 kB / 0.5447 GB, free: 130.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003631/0.704, allocations: 2.68 MB / 0.5473 GB, free: 128.7 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003617/0.7077, allocations: 0.8213 MB / 0.5481 GB, free: 128.5 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01309/0.7208, allocations: 11.41 MB / 0.5592 GB, free: 122.1 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00228/0.7231, allocations: 3.308 MB / 0.5625 GB, free: 120.8 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002306/0.7254, allocations: 0.7572 MB / 0.5632 GB, free: 120.6 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000544/0.7259, allocations: 218.5 kB / 0.5634 GB, free: 120.6 MB / 446.1 MB Notification: Performance of SimCode: time 7.01e-07/0.7259, allocations: 0 / 0.5634 GB, free: 120.6 MB / 446.1 MB Notification: Performance of Templates: time 0.05991/0.7859, allocations: 44.2 MB / 0.6066 GB, free: 81.33 MB / 446.1 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","/var/lib/jenkins/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