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.001259/0.001259, allocations: 103.9 kB / 18.39 MB, free: 4.641 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.001276/0.001277, allocations: 190.5 kB / 19.33 MB, free: 3.715 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.441/1.441, allocations: 205.1 MB / 225.2 MB, free: 12.22 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.001312/0.001312, allocations: 55.92 kB / 329.2 MB, free: 3.273 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08928/0.0906, 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.2293/0.32, allocations: 20.23 MB / 396.1 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01614/0.3362, allocations: 5.944 MB / 402 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005819/0.3421, allocations: 116 kB / 402.1 MB, free: 12.47 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005262/0.3473, allocations: 1.397 MB / 403.5 MB, free: 11.68 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009028/0.3564, allocations: 1.977 MB / 405.5 MB, free: 10.38 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004092/0.3605, allocations: 1.249 MB / 406.7 MB, free: 9.586 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01075/0.3713, allocations: 6.118 MB / 412.9 MB, free: 6.312 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00797/0.3793, allocations: 5.361 MB / 418.2 MB, free: 3.672 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005607/0.3849, allocations: 2.844 MB / 421.1 MB, free: 1.977 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006702/0.3917, allocations: 3.395 MB / 424.5 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002045/0.3938, allocations: 0.7812 MB / 425.2 MB, free: 14.08 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00358/0.3974, allocations: 1.066 MB / 426.3 MB, free: 13.02 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001987/0.3994, allocations: 1.944 MB / 428.3 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005262/0.4046, allocations: 3.349 MB / 431.6 MB, free: 7.703 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01185/0.4165, allocations: 10.3 MB / 441.9 MB, free: 13.37 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.315e-06/0.4166, allocations: 0 / 441.9 MB, free: 13.37 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.4166, allocations: 0 / 441.9 MB, free: 13.37 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000308/0.4169, allocations: 0 / 441.9 MB, free: 13.37 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.01926/0.4362, allocations: 6.586 MB / 448.5 MB, free: 6.703 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.128e-05/0.4362, allocations: 12.03 kB / 448.5 MB, free: 6.691 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005589/0.4418, allocations: 1.005 MB / 449.5 MB, free: 5.68 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008281/0.4501, allocations: 3.345 MB / 452.9 MB, free: 2.258 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005062/0.4507, allocations: 382.7 kB / 453.2 MB, free: 1.883 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002232/0.4529, allocations: 0.508 MB / 453.7 MB, free: 1.375 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01826/0.4712, allocations: 6.771 MB / 460.5 MB, free: 10.54 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002318/0.4715, allocations: 15.83 kB / 460.5 MB, free: 10.52 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001369/0.4729, allocations: 212 kB / 460.7 MB, free: 10.31 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002875/0.4732, allocations: 238.2 kB / 461 MB, free: 10.08 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0135/0.4867, allocations: 5.744 MB / 466.7 MB, free: 4.324 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04209/0.5288, allocations: 20.83 MB / 487.5 MB, free: 14.99 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009355/0.5382, allocations: 8.547 MB / 496.1 MB, free: 5.492 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003632/0.5419, allocations: 2.093 MB / 498.2 MB, free: 3.395 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01177/0.5537, allocations: 5.911 MB / 0.4923 GB, free: 13.35 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.885e-05/0.5538, allocations: 56.56 kB / 0.4923 GB, free: 13.28 MB / 430.1 MB Notification: Performance of pre-optimization done (n=205): time 5.871e-06/0.5538, allocations: 4 kB / 0.4923 GB, free: 13.28 MB / 430.1 MB Notification: Performance of matching and sorting (n=222): time 0.02134/0.5751, allocations: 10.26 MB / 0.5023 GB, free: 2.777 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.831e-05/0.5752, allocations: 77.41 kB / 0.5024 GB, free: 2.691 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005489/0.5807, allocations: 2.912 MB / 0.5053 GB, free: 15.77 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002735/0.581, allocations: 61.7 kB / 0.5053 GB, free: 15.7 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001894/0.5829, allocations: 2.357 MB / 0.5076 GB, free: 13.32 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000786/0.5837, allocations: 0.7625 MB / 0.5084 GB, free: 12.55 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009631/0.5847, allocations: 0.5254 MB / 0.5089 GB, free: 12.01 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001015/0.5848, allocations: 301.1 kB / 0.5092 GB, free: 11.71 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002207/0.587, allocations: 1.271 MB / 0.5104 GB, free: 10.44 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002817/0.5898, allocations: 2.175 MB / 0.5125 GB, free: 7.863 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005055/0.5949, allocations: 3.668 MB / 0.5161 GB, free: 3.797 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.604e-05/0.5949, allocations: 12 kB / 0.5161 GB, free: 3.785 MB / 446.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.007653/0.6026, allocations: 4.446 MB / 0.5205 GB, free: 15.27 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.376e-05/0.6027, allocations: 16 kB / 0.5205 GB, free: 15.25 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.729e-05/0.6027, allocations: 28 kB / 0.5205 GB, free: 15.23 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001208/0.604, allocations: 0.5216 MB / 0.521 GB, free: 14.68 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002684/0.6067, allocations: 0.6902 MB / 0.5217 GB, free: 13.99 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009209/0.6159, allocations: 10.19 MB / 0.5316 GB, free: 3.109 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002848/0.6188, allocations: 171.8 kB / 0.5318 GB, free: 2.941 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005149/0.6193, allocations: 128 kB / 0.5319 GB, free: 2.816 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.003382/0.6227, allocations: 1.52 MB / 0.5334 GB, free: 1.285 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001012/0.6237, allocations: 320 kB / 0.5337 GB, free: 0.9688 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007383/0.6311, allocations: 3.875 MB / 0.5375 GB, free: 12.99 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.05e-05/0.6312, allocations: 27.94 kB / 0.5375 GB, free: 12.96 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.954e-05/0.6312, allocations: 8 kB / 0.5375 GB, free: 12.96 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.482e-05/0.6313, allocations: 15.89 kB / 0.5376 GB, free: 12.94 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01696/0.6482, allocations: 8.467 MB / 0.5458 GB, free: 4.285 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.499e-05/0.6483, allocations: 4 kB / 0.5458 GB, free: 4.281 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001666/0.6499, allocations: 383.4 kB / 0.5462 GB, free: 3.906 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001943/0.6519, allocations: 0.7288 MB / 0.5469 GB, free: 3.152 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000226/0.6522, allocations: 63.97 kB / 0.547 GB, free: 3.09 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2399/0.8921, allocations: 16.59 MB / 0.5632 GB, free: 136.3 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.572e-06/0.8921, allocations: 6.812 kB / 0.5632 GB, free: 136.3 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009422/0.9015, allocations: 5.556 MB / 0.5686 GB, free: 133.9 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001744/0.9033, allocations: 0.653 MB / 0.5692 GB, free: 133.7 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005613/0.9039, allocations: 56.38 kB / 0.5693 GB, free: 133.6 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001531/0.9054, allocations: 129 kB / 0.5694 GB, free: 133.6 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004673/0.9059, allocations: 173.9 kB / 0.5696 GB, free: 133.6 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001413/0.9061, allocations: 66.86 kB / 0.5696 GB, free: 133.5 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003255/0.9093, allocations: 1.963 MB / 0.5716 GB, free: 132.8 MB / 478.1 MB Notification: Performance of sort global known variables: time 3e-07/0.9093, allocations: 0 / 0.5716 GB, free: 132.8 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003669/0.913, allocations: 0.9358 MB / 0.5725 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.0006443/0.9137, allocations: 248.2 kB / 0.5727 GB, free: 132.6 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006521/0.9202, allocations: 3.97 MB / 0.5766 GB, free: 130.7 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.705e-06/0.9202, allocations: 1.25 kB / 0.5766 GB, free: 130.7 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004137/0.9244, allocations: 2.647 MB / 0.5792 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.004315/0.9287, allocations: 0.8536 MB / 0.58 GB, free: 128.9 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01571/0.9444, allocations: 9.474 MB / 0.5893 GB, free: 124.3 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002568/0.9471, allocations: 3.229 MB / 0.5924 GB, free: 123.1 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001119/0.9482, allocations: 243.5 kB / 0.5926 GB, free: 123 MB / 478.1 MB Notification: Performance of SimCode: time 1.242e-06/0.9482, allocations: 0 / 0.5926 GB, free: 123 MB / 478.1 MB Notification: Performance of Templates: time 0.418/1.366, allocations: 250.9 MB / 0.8377 GB, free: 71.16 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