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.001/0.001, allocations: 107.4 kB / 17.15 MB, free: 6.305 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.001079/0.001079, allocations: 198 kB / 18.07 MB, free: 5.41 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.469/1.469, allocations: 205.1 MB / 223.9 MB, free: 12.48 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.001163/0.001163, allocations: 47.94 kB / 280 MB, free: 3.586 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09694/0.09812, allocations: 46.63 MB / 326.6 MB, free: 4.891 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter): time 0.02021/0.1184, allocations: 19.96 MB / 346.6 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01341/0.1318, allocations: 5.882 MB / 352.5 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004994/0.137, allocations: 111.4 kB / 352.6 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004475/0.1415, allocations: 1.142 MB / 353.7 MB, free: 9.672 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007485/0.149, allocations: 1.737 MB / 355.4 MB, free: 7.926 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003619/0.1526, allocations: 1.131 MB / 356.6 MB, free: 6.793 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009712/0.1623, allocations: 6.668 MB / 363.2 MB, free: 100 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006181/0.1686, allocations: 4.479 MB / 367.7 MB, free: 11.53 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004496/0.1731, allocations: 2.358 MB / 370.1 MB, free: 9.164 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005854/0.179, allocations: 3.187 MB / 373.3 MB, free: 5.965 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001611/0.1806, allocations: 476 kB / 373.7 MB, free: 5.5 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003226/0.1838, allocations: 0.773 MB / 374.5 MB, free: 4.727 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001813/0.1857, allocations: 1.6 MB / 376.1 MB, free: 3.121 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004411/0.1901, allocations: 3.013 MB / 379.1 MB, free: 96 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2274/0.4175, allocations: 9.941 MB / 389.1 MB, free: 24.98 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.933e-05/0.4176, allocations: 1.25 kB / 389.1 MB, free: 24.98 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.4176, allocations: 3.375 kB / 389.1 MB, free: 24.98 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003784/0.418, allocations: 0 / 389.1 MB, free: 24.98 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.02412/0.4421, allocations: 6.581 MB / 395.6 MB, free: 22.42 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.274e-05/0.4422, allocations: 9.781 kB / 395.7 MB, free: 22.42 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00521/0.4474, allocations: 1.012 MB / 396.7 MB, free: 21.99 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007354/0.4548, allocations: 3.271 MB / 399.9 MB, free: 20.82 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004135/0.4552, allocations: 394.5 kB / 400.3 MB, free: 20.8 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001239/0.4564, allocations: 0.5085 MB / 400.8 MB, free: 20.79 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01499/0.4714, allocations: 6.774 MB / 407.6 MB, free: 16.92 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001667/0.4717, allocations: 7.781 kB / 407.6 MB, free: 16.91 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007379/0.4724, allocations: 209.6 kB / 407.8 MB, free: 16.75 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002245/0.4726, allocations: 238.6 kB / 408 MB, free: 16.72 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01277/0.4854, allocations: 5.746 MB / 413.8 MB, free: 13.73 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05204/0.5375, allocations: 21.09 MB / 434.9 MB, free: 9.113 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01063/0.5482, allocations: 8.545 MB / 443.4 MB, free: 15.63 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0044/0.5526, allocations: 2.11 MB / 445.5 MB, free: 13.52 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01707/0.5697, allocations: 5.938 MB / 451.5 MB, free: 7.531 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.221e-05/0.5698, allocations: 56.56 kB / 451.5 MB, free: 7.469 MB / 350.1 MB Notification: Performance of pre-optimization done (n=205): time 7.144e-06/0.5699, allocations: 0 / 451.5 MB, free: 7.469 MB / 350.1 MB Notification: Performance of matching and sorting (n=222): time 0.02508/0.5949, allocations: 10.26 MB / 461.8 MB, free: 13.03 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.798e-05/0.595, allocations: 73.41 kB / 461.9 MB, free: 12.94 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006746/0.6018, allocations: 2.908 MB / 464.8 MB, free: 10.02 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002991/0.6021, allocations: 61.7 kB / 464.8 MB, free: 9.957 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002053/0.6042, allocations: 2.36 MB / 467.2 MB, free: 7.582 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008741/0.6051, allocations: 0.7631 MB / 468 MB, free: 6.824 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001027/0.6061, allocations: 0.5138 MB / 468.5 MB, free: 6.301 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001132/0.6062, allocations: 301.1 kB / 468.8 MB, free: 6.004 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002248/0.6085, allocations: 1.271 MB / 470 MB, free: 4.73 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002941/0.6115, allocations: 2.177 MB / 472.2 MB, free: 2.168 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005416/0.6169, allocations: 3.667 MB / 475.9 MB, free: 14.22 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.89e-05/0.6169, allocations: 11 kB / 475.9 MB, free: 14.21 MB / 382.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.008087/0.625, allocations: 4.435 MB / 480.3 MB, free: 9.887 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.857e-05/0.6251, allocations: 27.42 kB / 480.4 MB, free: 9.863 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.148e-05/0.6252, allocations: 28 kB / 480.4 MB, free: 9.836 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001266/0.6264, allocations: 0.5166 MB / 480.9 MB, free: 9.305 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002474/0.6289, allocations: 0.6909 MB / 481.6 MB, free: 8.66 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008562/0.6375, allocations: 9.348 MB / 490.9 MB, free: 14.7 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003313/0.6408, allocations: 175.8 kB / 491.1 MB, free: 14.53 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004858/0.6413, allocations: 128 kB / 491.2 MB, free: 14.41 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.00445/0.6458, allocations: 1.521 MB / 492.8 MB, free: 12.92 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001132/0.647, allocations: 323.4 kB / 493.1 MB, free: 12.6 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007911/0.6549, allocations: 3.874 MB / 496.9 MB, free: 8.66 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.396e-05/0.6549, allocations: 24 kB / 497 MB, free: 8.637 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.689e-05/0.655, allocations: 8 kB / 497 MB, free: 8.629 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.326e-05/0.655, allocations: 11.91 kB / 497 MB, free: 8.617 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01874/0.6737, allocations: 8.482 MB / 0.4936 GB, free: 52 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.228e-05/0.6738, allocations: 4 kB / 0.4936 GB, free: 48 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001677/0.6755, allocations: 384.9 kB / 0.494 GB, free: 15.69 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002037/0.6775, allocations: 0.7258 MB / 0.4947 GB, free: 14.95 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002354/0.6778, allocations: 59.97 kB / 0.4948 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.015/0.6928, allocations: 15.2 MB / 0.5096 GB, free: 14.69 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.364e-06/0.6928, allocations: 7.375 kB / 0.5096 GB, free: 14.69 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01077/0.7036, allocations: 5.547 MB / 0.515 GB, free: 9.031 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002234/0.7059, allocations: 0.6571 MB / 0.5157 GB, free: 8.352 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001213/0.7071, allocations: 55.92 kB / 0.5157 GB, free: 8.297 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002312/0.7094, allocations: 131.9 kB / 0.5159 GB, free: 8.168 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005202/0.71, allocations: 175.2 kB / 0.516 GB, free: 8 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001909/0.7102, allocations: 63.98 kB / 0.5161 GB, free: 7.938 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.004592/0.7148, allocations: 1.967 MB / 0.518 GB, free: 5.973 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.7148, allocations: 0 / 0.518 GB, free: 5.973 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.005321/0.7201, allocations: 0.9258 MB / 0.5189 GB, free: 5.047 MB / 430.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.0008127/0.721, allocations: 247.1 kB / 0.5191 GB, free: 4.816 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00702/0.728, allocations: 3.956 MB / 0.523 GB, free: 0.8594 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.673e-06/0.728, allocations: 0 / 0.523 GB, free: 0.8594 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1974/0.9254, allocations: 2.65 MB / 0.5256 GB, free: 146.3 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004549/0.93, allocations: 0.8041 MB / 0.5264 GB, free: 146.3 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01849/0.9485, allocations: 11.73 MB / 0.5378 GB, free: 140.8 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003504/0.9521, allocations: 3.301 MB / 0.5411 GB, free: 139.9 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.003079/0.9552, allocations: 0.7546 MB / 0.5418 GB, free: 139.8 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006279/0.9558, allocations: 224.4 kB / 0.542 GB, free: 139.8 MB / 430.1 MB Notification: Performance of SimCode: time 1.062e-06/0.9558, allocations: 0 / 0.542 GB, free: 139.8 MB / 430.1 MB Notification: Performance of Templates: time 0.0777/1.034, allocations: 45.54 MB / 0.5865 GB, free: 100.2 MB / 430.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","../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