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.001366/0.001366, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001544/0.001544, allocations: 211.9 kB / 19.25 MB, free: 3.895 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.353/1.353, allocations: 227.4 MB / 247.4 MB, free: 10.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00113/0.00113, allocations: 63.83 kB / 307.6 MB, free: 0.6797 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0886/0.08975, allocations: 50.52 MB / 358.2 MB, free: 14.14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter): time 0.155/0.2448, allocations: 20.92 MB / 379.1 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008916/0.2537, allocations: 6.18 MB / 385.3 MB, free: 7.266 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002039/0.2558, allocations: 134.4 kB / 385.4 MB, free: 7.234 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002617/0.2584, allocations: 1.371 MB / 386.8 MB, free: 6.469 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004291/0.2627, allocations: 1.895 MB / 388.7 MB, free: 5.227 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002614/0.2654, allocations: 1.28 MB / 389.9 MB, free: 4.426 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005834/0.2712, allocations: 6.125 MB / 396.1 MB, free: 1.254 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005246/0.2765, allocations: 5.444 MB / 401.5 MB, free: 14.93 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003514/0.28, allocations: 2.837 MB / 404.3 MB, free: 13.27 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003924/0.2839, allocations: 3.498 MB / 407.8 MB, free: 10.73 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001033/0.285, allocations: 0.7812 MB / 408.6 MB, free: 9.949 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002034/0.287, allocations: 1.097 MB / 409.7 MB, free: 8.852 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001457/0.2885, allocations: 1.952 MB / 411.7 MB, free: 6.895 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003022/0.2915, allocations: 3.357 MB / 415 MB, free: 3.523 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007628/0.2992, allocations: 10.26 MB / 425.3 MB, free: 9.23 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.2992, allocations: 0 / 425.3 MB, free: 9.23 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.396e-06/0.2992, allocations: 4 kB / 425.3 MB, free: 9.227 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001305/0.2993, allocations: 0 / 425.3 MB, free: 9.227 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.01224/0.3116, allocations: 6.619 MB / 431.9 MB, free: 2.527 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.347e-05/0.3116, allocations: 8.031 kB / 431.9 MB, free: 2.52 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00399/0.3156, allocations: 1.013 MB / 432.9 MB, free: 1.5 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00483/0.3205, allocations: 3.493 MB / 436.4 MB, free: 13.93 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002733/0.3207, allocations: 399 kB / 436.8 MB, free: 13.54 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006184/0.3214, allocations: 0.4998 MB / 437.3 MB, free: 13.04 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009381/0.3308, allocations: 6.779 MB / 444.1 MB, free: 6.191 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.34e-05/0.3309, allocations: 11.91 kB / 444.1 MB, free: 6.18 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004358/0.3313, allocations: 208 kB / 444.3 MB, free: 5.977 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001967/0.3315, allocations: 242.2 kB / 444.5 MB, free: 5.738 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01117/0.3427, allocations: 5.755 MB / 450.3 MB, free: 15.97 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03811/0.3809, allocations: 21.19 MB / 471.5 MB, free: 10.27 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008756/0.3896, allocations: 8.816 MB / 480.3 MB, free: 472 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003692/0.3934, allocations: 2.218 MB / 482.5 MB, free: 14.23 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01057/0.404, allocations: 6.206 MB / 488.7 MB, free: 7.824 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.486e-05/0.404, allocations: 52.56 kB / 488.8 MB, free: 7.766 MB / 398.1 MB Notification: Performance of pre-optimization done (n=205): time 4.208e-06/0.4041, allocations: 0 / 488.8 MB, free: 7.766 MB / 398.1 MB Notification: Performance of matching and sorting (n=222): time 0.02174/0.4258, allocations: 10.43 MB / 499.2 MB, free: 13.08 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.448e-05/0.4259, allocations: 73.41 kB / 499.3 MB, free: 12.99 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005765/0.4317, allocations: 2.925 MB / 0.4904 GB, free: 10.06 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005506/0.4323, allocations: 61.7 kB / 0.4905 GB, free: 9.992 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002137/0.4344, allocations: 2.369 MB / 0.4928 GB, free: 7.598 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00101/0.4354, allocations: 0.7625 MB / 0.4935 GB, free: 6.824 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001492/0.4369, allocations: 0.5138 MB / 0.4941 GB, free: 6.301 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001276/0.4371, allocations: 313.1 kB / 0.4943 GB, free: 5.992 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002499/0.4396, allocations: 1.267 MB / 0.4956 GB, free: 4.723 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0031/0.4427, allocations: 2.171 MB / 0.4977 GB, free: 2.152 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00621/0.449, allocations: 3.672 MB / 0.5013 GB, free: 14.09 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.235e-05/0.4491, allocations: 8 kB / 0.5013 GB, free: 14.08 MB / 430.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.009787/0.4589, allocations: 4.462 MB / 0.5057 GB, free: 9.547 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.389e-05/0.459, allocations: 24.09 kB / 0.5057 GB, free: 9.523 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.974e-05/0.459, allocations: 28 kB / 0.5057 GB, free: 9.496 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001308/0.4604, allocations: 0.5328 MB / 0.5062 GB, free: 8.941 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002618/0.463, allocations: 0.6825 MB / 0.5069 GB, free: 8.258 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01019/0.4732, allocations: 10.35 MB / 0.517 GB, free: 13.21 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002914/0.4762, allocations: 183.6 kB / 0.5172 GB, free: 13.03 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005736/0.4767, allocations: 132 kB / 0.5173 GB, free: 12.9 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.003233/0.48, allocations: 1.52 MB / 0.5188 GB, free: 11.37 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009554/0.481, allocations: 320.1 kB / 0.5191 GB, free: 11.05 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007303/0.4883, allocations: 3.903 MB / 0.5229 GB, free: 7.055 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.006e-05/0.4883, allocations: 24 kB / 0.5229 GB, free: 7.031 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.863e-05/0.4884, allocations: 12 kB / 0.5229 GB, free: 7.02 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.523e-05/0.4884, allocations: 15.89 kB / 0.5229 GB, free: 7.004 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1589/0.6473, allocations: 8.508 MB / 0.5313 GB, free: 137.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.092e-05/0.6474, allocations: 3.375 kB / 0.5313 GB, free: 137.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00173/0.6491, allocations: 374.8 kB / 0.5316 GB, free: 137.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001902/0.651, allocations: 0.7515 MB / 0.5324 GB, free: 137.3 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003711/0.6514, allocations: 65.25 kB / 0.5324 GB, free: 137.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0148/0.6662, allocations: 16.76 MB / 0.5488 GB, free: 124.2 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.482e-06/0.6663, allocations: 12.61 kB / 0.5488 GB, free: 124.2 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01032/0.6766, allocations: 5.577 MB / 0.5542 GB, free: 121.7 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001795/0.6785, allocations: 0.6482 MB / 0.5549 GB, free: 121.5 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001024/0.6795, allocations: 55.78 kB / 0.5549 GB, free: 121.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00278/0.6823, allocations: 131.5 kB / 0.5551 GB, free: 121.4 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007839/0.6831, allocations: 170.7 kB / 0.5552 GB, free: 121.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003391/0.6835, allocations: 69.39 kB / 0.5553 GB, free: 121.4 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004447/0.688, allocations: 1.976 MB / 0.5572 GB, free: 120.6 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.688, allocations: 0.9375 kB / 0.5572 GB, free: 120.6 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005044/0.693, allocations: 0.9415 MB / 0.5581 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.0008278/0.6939, allocations: 272.4 kB / 0.5584 GB, free: 120.4 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01105/0.705, allocations: 5.387 MB / 0.5637 GB, free: 118.5 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.257e-06/0.705, allocations: 1.625 kB / 0.5637 GB, free: 118.5 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003928/0.709, allocations: 2.663 MB / 0.5663 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.004031/0.713, allocations: 0.8716 MB / 0.5671 GB, free: 116.6 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01334/0.7264, allocations: 9.598 MB / 0.5765 GB, free: 111.4 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002334/0.7288, allocations: 3.224 MB / 0.5796 GB, free: 108.9 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009192/0.7297, allocations: 244.5 kB / 0.5799 GB, free: 108.6 MB / 446.1 MB Notification: Performance of SimCode: time 6.61e-07/0.7297, allocations: 0 / 0.5799 GB, free: 108.6 MB / 446.1 MB Notification: Performance of Templates: time 1.053/1.783, allocations: 251.5 MB / 0.8254 GB, free: 38.3 MB / 462.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/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