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.001372/0.001372, allocations: 103.8 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001656/0.001656, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.398/1.398, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00142/0.00142, allocations: 63.42 kB / 307 MB, free: 0.6289 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09824/0.09967, allocations: 50.53 MB / 357.5 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter): time 0.2153/0.315, allocations: 20.93 MB / 378.4 MB, free: 9.984 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0144/0.3295, allocations: 6.183 MB / 384.6 MB, free: 7.191 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00448/0.334, allocations: 137.3 kB / 384.7 MB, free: 7.156 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004088/0.3381, allocations: 1.367 MB / 386.1 MB, free: 6.395 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00719/0.3453, allocations: 1.896 MB / 388 MB, free: 5.152 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003592/0.349, allocations: 1.27 MB / 389.3 MB, free: 4.355 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008039/0.357, allocations: 6.127 MB / 395.4 MB, free: 1.184 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007533/0.3646, allocations: 5.441 MB / 400.8 MB, free: 14.86 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006005/0.3706, allocations: 2.832 MB / 403.7 MB, free: 13.19 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006289/0.3769, allocations: 3.501 MB / 407.2 MB, free: 10.65 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001989/0.3789, allocations: 0.7812 MB / 407.9 MB, free: 9.871 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003553/0.3825, allocations: 1.101 MB / 409 MB, free: 8.77 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001942/0.3844, allocations: 1.948 MB / 411 MB, free: 6.816 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004406/0.3889, allocations: 3.364 MB / 414.3 MB, free: 3.438 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01141/0.4003, allocations: 10.25 MB / 424.6 MB, free: 9.152 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.4003, allocations: 0 / 424.6 MB, free: 9.152 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.4003, allocations: 0 / 424.6 MB, free: 9.152 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002428/0.4006, allocations: 4 kB / 424.6 MB, free: 9.148 MB / 334.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.01697/0.4176, allocations: 6.627 MB / 431.2 MB, free: 2.441 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.925e-05/0.4176, allocations: 8.031 kB / 431.2 MB, free: 2.434 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004462/0.4221, allocations: 1.021 MB / 432.3 MB, free: 1.406 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006183/0.4283, allocations: 3.482 MB / 435.7 MB, free: 13.85 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003488/0.4286, allocations: 399 kB / 436.1 MB, free: 13.46 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007603/0.4294, allocations: 0.4998 MB / 436.6 MB, free: 12.96 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0116/0.441, allocations: 6.779 MB / 443.4 MB, free: 6.109 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001056/0.4411, allocations: 19.89 kB / 443.4 MB, free: 6.09 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004602/0.4416, allocations: 208 kB / 443.6 MB, free: 5.887 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002133/0.4418, allocations: 242.2 kB / 443.9 MB, free: 5.648 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01022/0.4521, allocations: 5.748 MB / 449.6 MB, free: 15.89 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03441/0.4865, allocations: 21.18 MB / 470.8 MB, free: 10.19 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008589/0.4951, allocations: 8.822 MB / 479.6 MB, free: 388 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003601/0.4988, allocations: 2.222 MB / 481.8 MB, free: 14.14 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01068/0.5095, allocations: 6.203 MB / 488 MB, free: 7.742 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.498e-05/0.5096, allocations: 60.56 kB / 488.1 MB, free: 7.676 MB / 398.1 MB Notification: Performance of pre-optimization done (n=205): time 3.757e-06/0.5096, allocations: 0 / 488.1 MB, free: 7.676 MB / 398.1 MB Notification: Performance of matching and sorting (n=222): time 0.02225/0.5318, allocations: 10.42 MB / 498.5 MB, free: 13 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.694e-05/0.5319, allocations: 77.41 kB / 498.6 MB, free: 12.91 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005079/0.537, allocations: 2.925 MB / 0.4898 GB, free: 9.977 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002372/0.5373, allocations: 61.7 kB / 0.4898 GB, free: 9.91 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001654/0.5389, allocations: 2.377 MB / 0.4921 GB, free: 7.508 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006737/0.5396, allocations: 0.7586 MB / 0.4929 GB, free: 6.738 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007905/0.5404, allocations: 0.5138 MB / 0.4934 GB, free: 6.215 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001007/0.5405, allocations: 309.1 kB / 0.4937 GB, free: 5.91 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002073/0.5426, allocations: 1.278 MB / 0.4949 GB, free: 4.629 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002637/0.5453, allocations: 2.167 MB / 0.4971 GB, free: 2.062 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005005/0.5503, allocations: 3.668 MB / 0.5006 GB, free: 14 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-05/0.5503, allocations: 8 kB / 0.5006 GB, free: 13.99 MB / 430.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.007746/0.5581, allocations: 4.462 MB / 0.505 GB, free: 9.461 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.946e-05/0.5581, allocations: 20 kB / 0.505 GB, free: 9.441 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.007e-05/0.5582, allocations: 28 kB / 0.505 GB, free: 9.414 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001242/0.5594, allocations: 0.5411 MB / 0.5056 GB, free: 8.852 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00248/0.5619, allocations: 0.6786 MB / 0.5062 GB, free: 8.172 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009437/0.5714, allocations: 10.35 MB / 0.5163 GB, free: 13.12 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00264/0.574, allocations: 179.7 kB / 0.5165 GB, free: 12.95 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003394/0.5744, allocations: 124 kB / 0.5166 GB, free: 12.82 MB / 446.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.002852/0.5773, allocations: 1.531 MB / 0.5181 GB, free: 11.28 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008346/0.5781, allocations: 320.1 kB / 0.5184 GB, free: 10.96 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007085/0.5852, allocations: 3.891 MB / 0.5222 GB, free: 6.977 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.23e-05/0.5853, allocations: 28 kB / 0.5223 GB, free: 6.949 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.545e-05/0.5853, allocations: 11.94 kB / 0.5223 GB, free: 6.938 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.376e-05/0.5853, allocations: 15.89 kB / 0.5223 GB, free: 6.922 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1837/0.769, allocations: 8.505 MB / 0.5306 GB, free: 137.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.336e-05/0.7691, allocations: 4.25 kB / 0.5306 GB, free: 137.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001815/0.7709, allocations: 377.5 kB / 0.531 GB, free: 137.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002082/0.773, allocations: 0.7507 MB / 0.5317 GB, free: 137.2 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002213/0.7732, allocations: 69.08 kB / 0.5318 GB, free: 137.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0125/0.7857, allocations: 16.77 MB / 0.5481 GB, free: 124.1 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.143e-06/0.7858, allocations: 5.109 kB / 0.5481 GB, free: 124.1 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009565/0.7954, allocations: 5.577 MB / 0.5536 GB, free: 121.7 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001537/0.7969, allocations: 0.6483 MB / 0.5542 GB, free: 121.4 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008019/0.7977, allocations: 57.91 kB / 0.5543 GB, free: 121.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001906/0.7997, allocations: 131.1 kB / 0.5544 GB, free: 121.3 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000449/0.8001, allocations: 169.7 kB / 0.5546 GB, free: 121.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001527/0.8003, allocations: 68.48 kB / 0.5546 GB, free: 121.3 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00263/0.8029, allocations: 1.971 MB / 0.5565 GB, free: 120.5 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.8029, allocations: 0 / 0.5565 GB, free: 120.5 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003296/0.8062, allocations: 0.9458 MB / 0.5575 GB, free: 120.5 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 (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.0005161/0.8068, allocations: 260.7 kB / 0.5577 GB, free: 120.3 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008999/0.8158, allocations: 5.396 MB / 0.563 GB, free: 118.4 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.14e-06/0.8158, allocations: 3.969 kB / 0.563 GB, free: 118.4 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003403/0.8192, allocations: 2.674 MB / 0.5656 GB, free: 116.9 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003396/0.8226, allocations: 0.8698 MB / 0.5665 GB, free: 116.5 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01297/0.8356, allocations: 9.572 MB / 0.5758 GB, free: 111.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002275/0.8379, allocations: 3.304 MB / 0.579 GB, free: 108.7 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002304/0.8402, allocations: 0.7566 MB / 0.5798 GB, free: 108.1 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005197/0.8408, allocations: 225.4 kB / 0.58 GB, free: 107.9 MB / 446.1 MB Notification: Performance of SimCode: time 6.41e-07/0.8408, allocations: 4 kB / 0.58 GB, free: 107.9 MB / 446.1 MB Notification: Performance of Templates: time 0.06732/0.9081, allocations: 47.74 MB / 0.6266 GB, free: 61.04 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