Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smrM.stator.strayReluctance.port_p.Phi.im|smrM.stator.strayReluctance.port_p.Phi.re|vfController.x",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smrM.stator.strayReluctance.port_p.Phi.im|smrM.stator.strayReluctance.port_p.Phi.re|vfController.x",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001156/0.001156, allocations: 105.4 kB / 17.73 MB, free: 5.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001113/0.001113, allocations: 188.1 kB / 18.66 MB, free: 4.441 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.373/1.373, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001423/0.001423, allocations: 52.39 kB / 328.5 MB, free: 3.293 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1035, allocations: 46.62 MB / 375.2 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter): time 0.204/0.3076, allocations: 20.23 MB / 395.4 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01234/0.32, allocations: 5.941 MB / 401.3 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00405/0.3241, allocations: 117.3 kB / 401.4 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004128/0.3282, allocations: 1.342 MB / 402.8 MB, free: 11.74 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006638/0.3349, allocations: 1.901 MB / 404.7 MB, free: 10.49 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00352/0.3384, allocations: 1.254 MB / 405.9 MB, free: 9.691 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.009929/0.3484, allocations: 6.116 MB / 412.1 MB, free: 6.422 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006967/0.3554, allocations: 5.365 MB / 417.4 MB, free: 3.781 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004167/0.3596, allocations: 2.847 MB / 420.3 MB, free: 2.082 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004788/0.3644, allocations: 3.385 MB / 423.7 MB, free: 15.02 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001214/0.3656, allocations: 0.789 MB / 424.4 MB, free: 14.23 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002253/0.3679, allocations: 1.054 MB / 425.5 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001511/0.3694, allocations: 1.948 MB / 427.4 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003637/0.373, allocations: 3.353 MB / 430.8 MB, free: 7.859 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009784/0.3828, allocations: 10.3 MB / 441.1 MB, free: 13.53 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.3829, allocations: 0 / 441.1 MB, free: 13.53 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.3829, allocations: 4 kB / 441.1 MB, free: 13.53 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002229/0.3831, allocations: 0 / 441.1 MB, free: 13.53 MB / 366.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.01632/0.3994, allocations: 6.586 MB / 447.7 MB, free: 6.859 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.441e-05/0.3995, allocations: 8.031 kB / 447.7 MB, free: 6.852 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004332/0.4038, allocations: 1.005 MB / 448.7 MB, free: 5.84 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005549/0.4094, allocations: 3.341 MB / 452 MB, free: 2.422 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002623/0.4097, allocations: 390.6 kB / 452.4 MB, free: 2.039 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007879/0.4105, allocations: 0.508 MB / 452.9 MB, free: 1.531 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01187/0.4224, allocations: 6.775 MB / 459.7 MB, free: 10.69 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.83e-05/0.4225, allocations: 11.91 kB / 459.7 MB, free: 10.68 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004543/0.423, allocations: 208 kB / 459.9 MB, free: 10.47 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002131/0.4232, allocations: 246.2 kB / 460.2 MB, free: 10.23 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009505/0.4327, allocations: 5.744 MB / 465.9 MB, free: 4.477 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02977/0.4625, allocations: 20.83 MB / 486.7 MB, free: 15.14 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009309/0.4718, allocations: 8.531 MB / 495.3 MB, free: 5.66 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005108/0.477, allocations: 2.097 MB / 497.4 MB, free: 3.559 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0159/0.4929, allocations: 5.915 MB / 0.4915 GB, free: 13.51 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.614e-05/0.493, allocations: 52.56 kB / 0.4915 GB, free: 13.45 MB / 430.1 MB Notification: Performance of pre-optimization done (n=205): time 5.41e-06/0.493, allocations: 0 / 0.4915 GB, free: 13.45 MB / 430.1 MB Notification: Performance of matching and sorting (n=222): time 0.02987/0.5229, allocations: 10.28 MB / 0.5016 GB, free: 2.93 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.367e-05/0.523, allocations: 73.41 kB / 0.5016 GB, free: 2.848 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006912/0.5299, allocations: 2.912 MB / 0.5045 GB, free: 15.93 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00033/0.5302, allocations: 61.7 kB / 0.5045 GB, free: 15.86 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00212/0.5324, allocations: 2.353 MB / 0.5068 GB, free: 13.48 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008079/0.5332, allocations: 0.7664 MB / 0.5076 GB, free: 12.7 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001055/0.5343, allocations: 0.5176 MB / 0.5081 GB, free: 12.18 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001197/0.5344, allocations: 301.1 kB / 0.5084 GB, free: 11.88 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003534/0.5379, allocations: 1.271 MB / 0.5096 GB, free: 10.61 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004435/0.5424, allocations: 2.183 MB / 0.5118 GB, free: 8.02 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008223/0.5506, allocations: 3.668 MB / 0.5153 GB, free: 3.953 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.862e-05/0.5507, allocations: 8 kB / 0.5153 GB, free: 3.945 MB / 446.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.01186/0.5626, allocations: 4.451 MB / 0.5197 GB, free: 15.42 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.253e-05/0.5626, allocations: 16 kB / 0.5197 GB, free: 15.41 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.733e-05/0.5627, allocations: 28 kB / 0.5197 GB, free: 15.38 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001917/0.5647, allocations: 0.5137 MB / 0.5202 GB, free: 14.84 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004161/0.5688, allocations: 0.6903 MB / 0.5209 GB, free: 14.15 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01441/0.5833, allocations: 10.19 MB / 0.5309 GB, free: 3.27 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004349/0.5877, allocations: 171.8 kB / 0.531 GB, free: 3.102 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007445/0.5885, allocations: 128 kB / 0.5311 GB, free: 2.977 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 (348): * Single equations (assignments): 341 * 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,3,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.004836/0.5933, allocations: 1.523 MB / 0.5326 GB, free: 1.441 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001019/0.5943, allocations: 320.1 kB / 0.5329 GB, free: 1.125 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.011/0.6054, allocations: 3.871 MB / 0.5367 GB, free: 13.15 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.097e-05/0.6054, allocations: 24 kB / 0.5367 GB, free: 13.13 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.176e-05/0.6055, allocations: 4 kB / 0.5367 GB, free: 13.12 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.898e-05/0.6056, allocations: 23.83 kB / 0.5368 GB, free: 13.1 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02324/0.6288, allocations: 8.463 MB / 0.545 GB, free: 4.449 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.072e-05/0.6289, allocations: 12.08 kB / 0.545 GB, free: 4.438 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002896/0.6318, allocations: 375.4 kB / 0.5454 GB, free: 4.07 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002971/0.6348, allocations: 0.7327 MB / 0.5461 GB, free: 3.312 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003954/0.6352, allocations: 63.97 kB / 0.5462 GB, free: 3.25 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2837/0.9189, allocations: 16.6 MB / 0.5624 GB, free: 136.4 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.355e-06/0.919, allocations: 8.062 kB / 0.5624 GB, free: 136.4 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009446/0.9284, allocations: 5.552 MB / 0.5678 GB, free: 134 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001644/0.9301, allocations: 0.652 MB / 0.5684 GB, free: 133.8 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005314/0.9307, allocations: 60.72 kB / 0.5685 GB, free: 133.7 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001635/0.9323, allocations: 129 kB / 0.5686 GB, free: 133.7 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004716/0.9328, allocations: 171.2 kB / 0.5688 GB, free: 133.7 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001481/0.9329, allocations: 67.28 kB / 0.5689 GB, free: 133.7 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003276/0.9362, allocations: 1.964 MB / 0.5708 GB, free: 132.9 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.9362, allocations: 0 / 0.5708 GB, free: 132.9 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004074/0.9403, allocations: 0.9387 MB / 0.5717 GB, free: 132.8 MB / 478.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 (185): * Single equations (assignments): 177 * 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,3,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.0007061/0.941, allocations: 244 kB / 0.5719 GB, free: 132.7 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006684/0.9477, allocations: 3.962 MB / 0.5758 GB, free: 130.8 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.927e-06/0.9478, allocations: 1.375 kB / 0.5758 GB, free: 130.8 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004316/0.9521, allocations: 2.657 MB / 0.5784 GB, free: 129.3 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004293/0.9564, allocations: 0.8584 MB / 0.5792 GB, free: 129 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01685/0.9733, allocations: 9.464 MB / 0.5885 GB, free: 124.4 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002753/0.9761, allocations: 3.306 MB / 0.5917 GB, free: 123.2 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002507/0.9786, allocations: 0.7598 MB / 0.5924 GB, free: 123 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006048/0.9792, allocations: 221.4 kB / 0.5927 GB, free: 123 MB / 478.1 MB Notification: Performance of SimCode: time 1.312e-06/0.9792, allocations: 0 / 0.5927 GB, free: 123 MB / 478.1 MB Notification: Performance of Templates: time 0.06743/1.047, allocations: 45.37 MB / 0.637 GB, free: 80.53 MB / 478.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMR_Inverter/SMR_Inverter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches