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.001083/0.001083, allocations: 108.4 kB / 18.34 MB, free: 4.676 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.001082/0.001082, allocations: 186.9 kB / 19.28 MB, free: 3.75 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.493/1.493, allocations: 205.1 MB / 225.2 MB, free: 12.24 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.001877/0.001877, allocations: 51.92 kB / 282.1 MB, free: 2.438 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1109/0.1128, allocations: 46.63 MB / 328.7 MB, free: 3.738 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter): time 0.02045/0.1333, allocations: 20.23 MB / 349 MB, free: 15.41 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01269/0.146, allocations: 5.943 MB / 354.9 MB, free: 9.441 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004464/0.1506, allocations: 115.5 kB / 355 MB, free: 9.328 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004729/0.1554, allocations: 1.35 MB / 356.4 MB, free: 7.969 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007141/0.1625, allocations: 1.902 MB / 358.3 MB, free: 6.055 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002981/0.1655, allocations: 1.247 MB / 359.5 MB, free: 4.805 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008974/0.1745, allocations: 6.114 MB / 365.6 MB, free: 14.66 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006172/0.1807, allocations: 5.366 MB / 371 MB, free: 9.211 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004488/0.1852, allocations: 2.823 MB / 373.8 MB, free: 6.379 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004613/0.1898, allocations: 3.394 MB / 377.2 MB, free: 2.973 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001082/0.1909, allocations: 0.7812 MB / 378 MB, free: 2.191 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001988/0.1929, allocations: 1.062 MB / 379.1 MB, free: 1.129 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.1883/0.3813, allocations: 1.934 MB / 381 MB, free: 22.46 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006763/0.3881, allocations: 3.35 MB / 384.3 MB, free: 22.23 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01349/0.4016, allocations: 10.29 MB / 394.6 MB, free: 21.16 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.4016, allocations: 1.188 kB / 394.6 MB, free: 21.16 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.4016, allocations: 2.844 kB / 394.6 MB, free: 21.16 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003446/0.402, allocations: 0 / 394.6 MB, free: 21.16 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.0212/0.4232, allocations: 6.592 MB / 401.2 MB, free: 18.11 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.41e-05/0.4233, allocations: 9.625 kB / 401.2 MB, free: 18.11 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004884/0.4281, allocations: 1.001 MB / 402.2 MB, free: 17.62 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007345/0.4355, allocations: 3.342 MB / 405.6 MB, free: 15.41 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002067/0.4357, allocations: 383.2 kB / 406 MB, free: 15.24 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008046/0.4366, allocations: 0.4985 MB / 406.5 MB, free: 15.07 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01095/0.4475, allocations: 6.778 MB / 413.2 MB, free: 11.13 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001183/0.4477, allocations: 15.06 kB / 413.2 MB, free: 11.12 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004769/0.4481, allocations: 210.2 kB / 413.5 MB, free: 10.96 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002124/0.4484, allocations: 246.9 kB / 413.7 MB, free: 10.93 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009331/0.4577, allocations: 5.733 MB / 419.4 MB, free: 7.945 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03372/0.4914, allocations: 20.84 MB / 440.3 MB, free: 3.199 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008219/0.4997, allocations: 8.549 MB / 448.8 MB, free: 9.703 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003118/0.5029, allocations: 2.12 MB / 450.9 MB, free: 7.59 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01058/0.5135, allocations: 5.91 MB / 456.8 MB, free: 1.625 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.784e-05/0.5135, allocations: 56.56 kB / 456.9 MB, free: 1.562 MB / 350.1 MB Notification: Performance of pre-optimization done (n=205): time 3.877e-06/0.5135, allocations: 0 / 456.9 MB, free: 1.562 MB / 350.1 MB Notification: Performance of matching and sorting (n=222): time 0.02027/0.5338, allocations: 10.26 MB / 467.2 MB, free: 7.117 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.86e-05/0.5339, allocations: 77.41 kB / 467.2 MB, free: 7.027 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004889/0.5388, allocations: 2.908 MB / 470.1 MB, free: 4.113 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003199/0.5391, allocations: 65.7 kB / 470.2 MB, free: 4.043 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001648/0.5408, allocations: 2.348 MB / 472.6 MB, free: 1.68 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000702/0.5415, allocations: 0.7747 MB / 473.3 MB, free: 0.9102 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008169/0.5423, allocations: 0.5099 MB / 473.8 MB, free: 400 kB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001016/0.5424, allocations: 301.1 kB / 474.1 MB, free: 96 kB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002076/0.5445, allocations: 1.275 MB / 475.4 MB, free: 14.82 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002634/0.5472, allocations: 2.18 MB / 477.6 MB, free: 12.25 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005186/0.5524, allocations: 3.667 MB / 481.3 MB, free: 8.305 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.392e-05/0.5524, allocations: 8 kB / 481.3 MB, free: 8.297 MB / 382.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.007387/0.5598, allocations: 4.442 MB / 485.7 MB, free: 3.969 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.243e-05/0.5598, allocations: 16 kB / 485.7 MB, free: 3.953 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.881e-05/0.5599, allocations: 28 kB / 485.7 MB, free: 3.926 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001178/0.5611, allocations: 0.5206 MB / 486.3 MB, free: 3.391 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002573/0.5637, allocations: 0.6957 MB / 487 MB, free: 2.738 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008934/0.5726, allocations: 10.18 MB / 497.1 MB, free: 7.922 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003016/0.5756, allocations: 179.7 kB / 497.3 MB, free: 7.746 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002744/0.5759, allocations: 124 kB / 497.4 MB, free: 7.625 MB / 398.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.003119/0.5791, allocations: 1.523 MB / 499 MB, free: 6.137 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006773/0.5797, allocations: 316.2 kB / 499.3 MB, free: 5.824 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006383/0.5861, allocations: 3.871 MB / 0.4913 GB, free: 1.887 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.806e-05/0.5862, allocations: 24 kB / 0.4914 GB, free: 1.863 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.291e-05/0.5862, allocations: 8 kB / 0.4914 GB, free: 1.855 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.105e-05/0.5862, allocations: 15.89 kB / 0.4914 GB, free: 1.84 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0144/0.6006, allocations: 8.47 MB / 0.4997 GB, free: 9.285 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.088e-05/0.6007, allocations: 4.469 kB / 0.4997 GB, free: 9.281 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001677/0.6023, allocations: 381.4 kB / 0.5 GB, free: 8.926 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001815/0.6042, allocations: 0.7298 MB / 0.5007 GB, free: 8.18 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001609/0.6043, allocations: 63.91 kB / 0.5008 GB, free: 8.117 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01478/0.6191, allocations: 16.62 MB / 0.517 GB, free: 6.461 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.599e-06/0.6191, allocations: 4 kB / 0.517 GB, free: 6.457 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009458/0.6286, allocations: 5.547 MB / 0.5225 GB, free: 0.793 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002095/0.6307, allocations: 0.657 MB / 0.5231 GB, free: 116 kB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006433/0.6314, allocations: 52 kB / 0.5232 GB, free: 64 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001612/0.633, allocations: 135.9 kB / 0.5233 GB, free: 15.93 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004407/0.6335, allocations: 168.8 kB / 0.5234 GB, free: 15.77 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000162/0.6336, allocations: 63.98 kB / 0.5235 GB, free: 15.71 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004096/0.6377, allocations: 1.963 MB / 0.5254 GB, free: 13.75 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.71e-07/0.6378, allocations: 0 / 0.5254 GB, free: 13.75 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005724/0.6435, allocations: 0.9377 MB / 0.5263 GB, free: 12.81 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 (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.0007917/0.6443, allocations: 253.8 kB / 0.5266 GB, free: 12.57 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006495/0.6508, allocations: 3.961 MB / 0.5304 GB, free: 8.609 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.117e-06/0.6509, allocations: 7.281 kB / 0.5305 GB, free: 8.605 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003928/0.6548, allocations: 2.649 MB / 0.533 GB, free: 5.902 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004257/0.6591, allocations: 0.8527 MB / 0.5339 GB, free: 5.051 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2036/0.8627, allocations: 9.466 MB / 0.5431 GB, free: 157.1 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004997/0.8677, allocations: 3.299 MB / 0.5463 GB, free: 156.3 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002641/0.8704, allocations: 0.7591 MB / 0.5471 GB, free: 156.3 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006472/0.8711, allocations: 220.6 kB / 0.5473 GB, free: 156.3 MB / 446.1 MB Notification: Performance of SimCode: time 1.412e-06/0.8711, allocations: 3.281 kB / 0.5473 GB, free: 156.3 MB / 446.1 MB Notification: Performance of Templates: time 0.07092/0.942, allocations: 44.35 MB / 0.5906 GB, free: 123.7 MB / 446.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 -s cvode -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/jenkins1/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/jenkins1/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