Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_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.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smpmE.is.1.|smpmE.is.2.|smpmE.idq_dr.1.|smpmE.idq_rr.2.|smpmE.idq_sr.1.|smpmE.idq_sr.2.|smpmM.is.1.|smpmM.is.2.|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpmM.stator.strayReluctance.port_p.Phi.im|smpmM.stator.strayReluctance.port_p.Phi.re|vfController.x",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smpmE.is.1.|smpmE.is.2.|smpmE.idq_dr.1.|smpmE.idq_rr.2.|smpmE.idq_sr.1.|smpmE.idq_sr.2.|smpmM.is.1.|smpmM.is.2.|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpmM.stator.strayReluctance.port_p.Phi.im|smpmM.stator.strayReluctance.port_p.Phi.re|vfController.x",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008076/0.0008077, allocations: 93.59 kB / 17.3 MB, free: 6.387 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.0008217/0.0008217, allocations: 174.1 kB / 18.2 MB, free: 5.551 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.32/1.32, allocations: 205.4 MB / 224.4 MB, free: 13.06 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.000476/0.000476, allocations: 12 kB / 281.4 MB, free: 3.402 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0995/0.09998, allocations: 47.58 MB / 329 MB, free: 3.754 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter): time 0.02055/0.1206, allocations: 20.53 MB / 349.5 MB, free: 15.14 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01274/0.1334, allocations: 6.306 MB / 355.8 MB, free: 8.805 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003205/0.1366, allocations: 115.4 kB / 355.9 MB, free: 8.691 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0037/0.1403, allocations: 1.259 MB / 357.2 MB, free: 7.426 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006637/0.147, allocations: 1.838 MB / 359 MB, free: 5.578 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003556/0.1506, allocations: 1.193 MB / 360.2 MB, free: 4.383 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009697/0.1603, allocations: 7.08 MB / 367.3 MB, free: 13.27 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006235/0.1666, allocations: 4.552 MB / 371.8 MB, free: 8.637 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003595/0.1702, allocations: 2.17 MB / 374 MB, free: 6.457 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005022/0.1752, allocations: 2.925 MB / 376.9 MB, free: 3.52 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00162/0.1769, allocations: 340 kB / 377.3 MB, free: 3.188 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002781/0.1797, allocations: 0.6324 MB / 377.9 MB, free: 2.555 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001867/0.1816, allocations: 1.452 MB / 379.3 MB, free: 1.098 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.1893/0.3708, allocations: 2.918 MB / 382.3 MB, free: 18.79 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01229/0.3832, allocations: 10.08 MB / 392.3 MB, free: 17.8 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.3832, allocations: 4.75 kB / 392.3 MB, free: 17.8 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.956e-06/0.3832, allocations: 0 / 392.3 MB, free: 17.8 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003258/0.3836, allocations: 0 / 392.3 MB, free: 17.8 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: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.01559/0.3992, allocations: 5.809 MB / 398.2 MB, free: 14.62 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.671e-05/0.3992, allocations: 9.812 kB / 398.2 MB, free: 14.62 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006302/0.4055, allocations: 1.068 MB / 399.2 MB, free: 14.16 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007871/0.4134, allocations: 3.451 MB / 402.7 MB, free: 12.92 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004233/0.4139, allocations: 418.1 kB / 403.1 MB, free: 12.9 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002228/0.4161, allocations: 0.5296 MB / 403.6 MB, free: 12.89 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0199/0.436, allocations: 7.07 MB / 410.7 MB, free: 11 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002167/0.4363, allocations: 10.81 kB / 410.7 MB, free: 10.99 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00107/0.4374, allocations: 218.2 kB / 410.9 MB, free: 10.83 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002378/0.4376, allocations: 263.8 kB / 411.2 MB, free: 10.79 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01306/0.4507, allocations: 5.97 MB / 417.1 MB, free: 7.707 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04535/0.4961, allocations: 22.54 MB / 439.7 MB, free: 1.848 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009014/0.5052, allocations: 8.307 MB / 448 MB, free: 8.664 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004/0.5092, allocations: 2.192 MB / 450.2 MB, free: 6.473 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01216/0.5214, allocations: 6.208 MB / 456.4 MB, free: 220 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.283e-05/0.5215, allocations: 60.56 kB / 456.5 MB, free: 152 kB / 350.1 MB Notification: Performance of pre-optimization done (n=220): time 4.127e-06/0.5215, allocations: 2.625 kB / 456.5 MB, free: 152 kB / 350.1 MB Notification: Performance of matching and sorting (n=240): time 0.02492/0.5464, allocations: 11.32 MB / 467.8 MB, free: 4.637 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.095e-05/0.5465, allocations: 80.03 kB / 467.9 MB, free: 4.547 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006204/0.5527, allocations: 3.148 MB / 471 MB, free: 1.398 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000542/0.5533, allocations: 69.7 kB / 471.1 MB, free: 1.324 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001956/0.5553, allocations: 2.503 MB / 473.6 MB, free: 14.8 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001089/0.5564, allocations: 0.8277 MB / 474.4 MB, free: 13.98 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003757/0.5567, allocations: 252.3 kB / 474.6 MB, free: 13.73 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001168/0.5569, allocations: 301.1 kB / 474.9 MB, free: 13.43 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002429/0.5593, allocations: 1.356 MB / 476.3 MB, free: 12.08 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002895/0.5622, allocations: 2.351 MB / 478.6 MB, free: 9.297 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005639/0.5679, allocations: 3.954 MB / 482.6 MB, free: 4.996 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.5e-05/0.5679, allocations: 8 kB / 482.6 MB, free: 4.988 MB / 382.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.008609/0.5765, allocations: 4.745 MB / 487.4 MB, free: 344 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.303e-05/0.5766, allocations: 16 kB / 487.4 MB, free: 328 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.272e-05/0.5767, allocations: 32 kB / 487.4 MB, free: 296 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001278/0.578, allocations: 0.5272 MB / 487.9 MB, free: 15.75 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002865/0.5809, allocations: 0.7532 MB / 488.7 MB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008674/0.5896, allocations: 9.437 MB / 498.1 MB, free: 5 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003728/0.5933, allocations: 187.8 kB / 498.3 MB, free: 4.816 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000559/0.5939, allocations: 144 kB / 498.4 MB, free: 4.676 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 144 * 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 (380): * Single equations (assignments): 373 * 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,12,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.004047/0.598, allocations: 1.575 MB / 0.4883 GB, free: 3.141 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001091/0.5991, allocations: 347.7 kB / 0.4886 GB, free: 2.797 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007534/0.6066, allocations: 4.077 MB / 0.4926 GB, free: 14.65 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.379e-05/0.6067, allocations: 24 kB / 0.4926 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.473e-05/0.6067, allocations: 10.62 kB / 0.4926 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.768e-05/0.6067, allocations: 19.83 kB / 0.4927 GB, free: 14.6 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01715/0.6239, allocations: 9.007 MB / 0.5015 GB, free: 5.512 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.326e-05/0.6239, allocations: 4 kB / 0.5015 GB, free: 5.508 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001817/0.6258, allocations: 422.1 kB / 0.5019 GB, free: 5.117 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001956/0.6277, allocations: 0.7323 MB / 0.5026 GB, free: 4.363 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002457/0.628, allocations: 63.97 kB / 0.5026 GB, free: 4.301 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01425/0.6422, allocations: 15.34 MB / 0.5176 GB, free: 3.973 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.5e-06/0.6423, allocations: 4 kB / 0.5176 GB, free: 3.969 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009932/0.6522, allocations: 5.893 MB / 0.5234 GB, free: 13.95 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002094/0.6544, allocations: 0.6959 MB / 0.5241 GB, free: 13.23 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006141/0.655, allocations: 59.98 kB / 0.5241 GB, free: 13.17 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001743/0.6567, allocations: 155.8 kB / 0.5243 GB, free: 13.02 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004528/0.6572, allocations: 183.8 kB / 0.5244 GB, free: 12.84 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001595/0.6574, allocations: 67.98 kB / 0.5245 GB, free: 12.77 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00353/0.6609, allocations: 2.127 MB / 0.5266 GB, free: 10.66 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.6609, allocations: 0 / 0.5266 GB, free: 10.66 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004203/0.6651, allocations: 0.9923 MB / 0.5275 GB, free: 9.664 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 13 (vfController.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpmE.inertiaRotor.w,smpmE.idq_sr[1],smpmE.idq_sr[2],smpmE.idq_rr[2],smpmE.idq_dr[1],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 (201): * Single equations (assignments): 193 * 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,12,100.0%), (1,3,100.0%), (1,1,100.0%), (2,1,100.0%), (1,1,100.0%), (1,8,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006794/0.6658, allocations: 243.8 kB / 0.5278 GB, free: 9.438 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006776/0.6726, allocations: 4.167 MB / 0.5319 GB, free: 5.281 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.145e-06/0.6726, allocations: 0 / 0.5319 GB, free: 5.281 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005131/0.6778, allocations: 2.773 MB / 0.5346 GB, free: 2.457 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01063/0.6884, allocations: 0.9027 MB / 0.5354 GB, free: 1.555 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2087/0.8972, allocations: 12.53 MB / 0.5477 GB, free: 154.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004139/0.9014, allocations: 3.412 MB / 0.551 GB, free: 153.3 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003092/0.9045, allocations: 0.8053 MB / 0.5518 GB, free: 153.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006426/0.9051, allocations: 245 kB / 0.552 GB, free: 153.2 MB / 446.1 MB Notification: Performance of SimCode: time 1.713e-06/0.9051, allocations: 0 / 0.552 GB, free: 153.2 MB / 446.1 MB Notification: Performance of Templates: time 0.07955/0.9847, allocations: 48.76 MB / 0.5996 GB, free: 113.5 MB / 446.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_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/SMPM_Inverter/SMPM_Inverter.csv","../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches