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.001461/0.001461, allocations: 113.3 kB / 18.4 MB, free: 4.699 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.001713/0.001713, allocations: 189.3 kB / 19.33 MB, free: 3.781 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.4/1.4, allocations: 205.1 MB / 225.2 MB, free: 12.23 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.001351/0.001352, allocations: 59.92 kB / 329.2 MB, free: 3.277 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08417/0.08553, allocations: 46.61 MB / 375.8 MB, free: 4.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter): time 0.1992/0.2848, allocations: 20.22 MB / 396.1 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01448/0.2993, allocations: 5.945 MB / 402 MB, free: 12.51 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005055/0.3044, allocations: 120.3 kB / 402.1 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005215/0.3097, allocations: 1.343 MB / 403.5 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0084/0.3181, allocations: 1.911 MB / 405.4 MB, free: 10.48 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004641/0.3228, allocations: 1.236 MB / 406.6 MB, free: 9.688 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01051/0.3333, allocations: 6.124 MB / 412.7 MB, free: 6.406 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01028/0.3436, allocations: 5.363 MB / 418.1 MB, free: 3.762 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005888/0.3495, allocations: 2.838 MB / 420.9 MB, free: 2.07 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006748/0.3563, allocations: 3.391 MB / 424.3 MB, free: 15.02 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002495/0.3588, allocations: 0.7852 MB / 425.1 MB, free: 14.24 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004225/0.3631, allocations: 1.07 MB / 426.2 MB, free: 13.17 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003018/0.3661, allocations: 1.944 MB / 428.1 MB, free: 11.22 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007192/0.3734, allocations: 3.349 MB / 431.5 MB, free: 7.855 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01428/0.3877, allocations: 10.29 MB / 441.8 MB, free: 13.53 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.388e-06/0.3877, allocations: 0 / 441.8 MB, free: 13.53 MB / 366.1 MB Notification: Performance of FrontEnd: time 5.371e-06/0.3877, allocations: 0 / 441.8 MB, free: 13.53 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003411/0.3881, allocations: 3.938 kB / 441.8 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.0237/0.4118, allocations: 6.586 MB / 448.4 MB, free: 6.859 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.803e-05/0.4119, allocations: 8.031 kB / 448.4 MB, free: 6.852 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006096/0.418, allocations: 1.005 MB / 449.4 MB, free: 5.84 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008718/0.4267, allocations: 3.345 MB / 452.7 MB, free: 2.418 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004734/0.4273, allocations: 386.6 kB / 453.1 MB, free: 2.039 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002095/0.4294, allocations: 0.504 MB / 453.6 MB, free: 1.535 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01799/0.4474, allocations: 6.779 MB / 460.4 MB, free: 10.69 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001678/0.4476, allocations: 11.91 kB / 460.4 MB, free: 10.68 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007267/0.4483, allocations: 208 kB / 460.6 MB, free: 10.47 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002709/0.4486, allocations: 246.2 kB / 460.8 MB, free: 10.23 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01298/0.4616, allocations: 5.74 MB / 466.6 MB, free: 4.48 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03956/0.5012, allocations: 20.83 MB / 487.4 MB, free: 15.14 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00926/0.5105, allocations: 8.534 MB / 495.9 MB, free: 5.656 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00392/0.5145, allocations: 2.093 MB / 498 MB, free: 3.562 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01139/0.5259, allocations: 5.927 MB / 0.4921 GB, free: 13.5 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.554e-05/0.526, allocations: 52.56 kB / 0.4922 GB, free: 13.44 MB / 430.1 MB Notification: Performance of pre-optimization done (n=205): time 5.66e-06/0.526, allocations: 0 / 0.4922 GB, free: 13.44 MB / 430.1 MB Notification: Performance of matching and sorting (n=222): time 0.02094/0.547, allocations: 10.26 MB / 0.5022 GB, free: 2.938 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.836e-05/0.5471, allocations: 77.41 kB / 0.5023 GB, free: 2.852 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004284/0.5514, allocations: 2.908 MB / 0.5051 GB, free: 15.93 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003975/0.5518, allocations: 69.64 kB / 0.5052 GB, free: 15.86 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001657/0.5535, allocations: 2.353 MB / 0.5075 GB, free: 13.48 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008296/0.5543, allocations: 0.7703 MB / 0.5083 GB, free: 12.7 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007705/0.5551, allocations: 0.5138 MB / 0.5088 GB, free: 12.17 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001068/0.5552, allocations: 305.1 kB / 0.509 GB, free: 11.87 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002047/0.5572, allocations: 1.271 MB / 0.5103 GB, free: 10.6 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002639/0.5599, allocations: 2.183 MB / 0.5124 GB, free: 8.012 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004906/0.5648, allocations: 3.672 MB / 0.516 GB, free: 3.941 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.876e-05/0.5648, allocations: 8 kB / 0.516 GB, free: 3.934 MB / 446.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.007978/0.5728, allocations: 4.439 MB / 0.5203 GB, free: 15.43 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.545e-05/0.5729, allocations: 20 kB / 0.5204 GB, free: 15.41 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.943e-05/0.573, allocations: 28 kB / 0.5204 GB, free: 15.38 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001255/0.5742, allocations: 0.5214 MB / 0.5209 GB, free: 14.84 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002635/0.5769, allocations: 0.6903 MB / 0.5216 GB, free: 14.14 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008967/0.5859, allocations: 10.19 MB / 0.5315 GB, free: 3.258 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002758/0.5887, allocations: 167.8 kB / 0.5317 GB, free: 3.094 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003379/0.589, allocations: 132 kB / 0.5318 GB, free: 2.965 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.00272/0.5917, allocations: 1.523 MB / 0.5333 GB, free: 1.43 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007087/0.5925, allocations: 312.2 kB / 0.5336 GB, free: 1.121 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006272/0.5987, allocations: 3.879 MB / 0.5374 GB, free: 13.14 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.734e-05/0.5988, allocations: 20 kB / 0.5374 GB, free: 13.12 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.309e-05/0.5988, allocations: 8 kB / 0.5374 GB, free: 13.11 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.33e-05/0.5988, allocations: 15.89 kB / 0.5374 GB, free: 13.1 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01335/0.6122, allocations: 8.463 MB / 0.5457 GB, free: 4.449 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.19e-05/0.6122, allocations: 4.469 kB / 0.5457 GB, free: 4.445 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001593/0.6138, allocations: 383.4 kB / 0.5461 GB, free: 4.07 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001811/0.6157, allocations: 0.7247 MB / 0.5468 GB, free: 3.32 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001775/0.6159, allocations: 63.97 kB / 0.5468 GB, free: 3.258 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2326/0.8484, allocations: 16.6 MB / 0.563 GB, free: 136.4 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.224e-06/0.8485, allocations: 10.94 kB / 0.5631 GB, free: 136.4 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009671/0.8581, allocations: 5.552 MB / 0.5685 GB, free: 133.9 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001912/0.8601, allocations: 0.6515 MB / 0.5691 GB, free: 133.7 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006922/0.8608, allocations: 52.88 kB / 0.5692 GB, free: 133.6 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00175/0.8626, allocations: 137.6 kB / 0.5693 GB, free: 133.6 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000488/0.8631, allocations: 171.6 kB / 0.5695 GB, free: 133.6 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001605/0.8632, allocations: 62.03 kB / 0.5695 GB, free: 133.6 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003756/0.867, allocations: 1.967 MB / 0.5714 GB, free: 132.8 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.867, allocations: 1.281 kB / 0.5714 GB, free: 132.8 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004605/0.8716, allocations: 0.9369 MB / 0.5724 GB, free: 132.7 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.0007999/0.8725, allocations: 250.5 kB / 0.5726 GB, free: 132.6 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006642/0.8791, allocations: 3.96 MB / 0.5765 GB, free: 130.7 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 9.257e-06/0.8792, allocations: 3.531 kB / 0.5765 GB, free: 130.7 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004134/0.8833, allocations: 2.66 MB / 0.5791 GB, free: 129.2 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004405/0.8877, allocations: 0.8532 MB / 0.5799 GB, free: 128.9 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01537/0.9031, allocations: 9.471 MB / 0.5891 GB, free: 124.4 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002472/0.9056, allocations: 3.231 MB / 0.5923 GB, free: 123.1 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001004/0.9067, allocations: 243.2 kB / 0.5925 GB, free: 123.1 MB / 478.1 MB Notification: Performance of SimCode: time 8.01e-07/0.9067, allocations: 0 / 0.5925 GB, free: 123.1 MB / 478.1 MB Notification: Performance of Templates: time 0.3989/1.306, allocations: 250.9 MB / 0.8376 GB, free: 71.52 MB / 494.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/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