Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.SynchronousMachines.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.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|vfController.x",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.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.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|vfController.x",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009704/0.0009705, allocations: 91.84 kB / 16.3 MB, free: 5.996 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.00102/0.00102, allocations: 183.8 kB / 17.2 MB, free: 5.91 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.393/1.393, allocations: 223.2 MB / 241.1 MB, free: 5.375 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002905/0.0002905, allocations: 7.25 kB / 300.7 MB, free: 6.023 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09685/0.09716, allocations: 50.42 MB / 351.2 MB, free: 11.68 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter): time 0.01527/0.1125, allocations: 16.31 MB / 367.5 MB, free: 11.31 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01149/0.124, allocations: 5.725 MB / 373.2 MB, free: 5.574 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003782/0.1278, allocations: 111.5 kB / 373.3 MB, free: 5.465 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003229/0.1311, allocations: 1.018 MB / 374.3 MB, free: 4.441 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00666/0.1378, allocations: 1.694 MB / 376 MB, free: 2.742 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002874/0.1406, allocations: 0.8189 MB / 376.8 MB, free: 1.926 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007243/0.1479, allocations: 4.057 MB / 380.9 MB, free: 13.86 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005736/0.1537, allocations: 3.637 MB / 384.5 MB, free: 10.16 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004032/0.1577, allocations: 1.915 MB / 386.4 MB, free: 8.238 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004613/0.1624, allocations: 2.369 MB / 388.8 MB, free: 5.859 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001284/0.1637, allocations: 316 kB / 389.1 MB, free: 5.551 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002276/0.166, allocations: 0.5426 MB / 389.7 MB, free: 5.008 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001517/0.1675, allocations: 1.308 MB / 391 MB, free: 3.695 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001844/0.1694, allocations: 1.132 MB / 392.1 MB, free: 2.555 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009296/0.1787, allocations: 8.309 MB / 400.4 MB, free: 10.22 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.846e-06/0.1787, allocations: 4 kB / 400.4 MB, free: 10.22 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.1787, allocations: 0 / 400.4 MB, free: 10.22 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0003148/0.1791, allocations: 0 / 400.4 MB, free: 10.22 MB / 334.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.01499/0.1941, allocations: 5.576 MB / 406 MB, free: 4.562 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.563e-05/0.1941, allocations: 12.02 kB / 406 MB, free: 4.551 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005528/0.1997, allocations: 1.008 MB / 407 MB, free: 3.535 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007255/0.2069, allocations: 3.392 MB / 410.4 MB, free: 68 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003813/0.2074, allocations: 398.2 kB / 410.8 MB, free: 15.68 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001197/0.2086, allocations: 0.4998 MB / 411.3 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01267/0.2212, allocations: 6.712 MB / 418 MB, free: 8.395 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001103/0.2214, allocations: 7.906 kB / 418 MB, free: 8.387 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004623/0.2219, allocations: 212 kB / 418.2 MB, free: 8.18 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002183/0.2221, allocations: 242.2 kB / 418.5 MB, free: 7.941 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01218/0.2343, allocations: 5.748 MB / 424.2 MB, free: 2.184 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2291/0.4634, allocations: 21.12 MB / 445.3 MB, free: 48.78 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006614/0.4701, allocations: 8.555 MB / 453.9 MB, free: 41.01 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00844/0.4786, allocations: 4.964 MB / 458.8 MB, free: 37.53 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.011e-05/0.4786, allocations: 64.31 kB / 458.9 MB, free: 37.47 MB / 350.1 MB Notification: Performance of pre-optimization done (n=219): time 3.857e-06/0.4786, allocations: 0 / 458.9 MB, free: 37.47 MB / 350.1 MB Notification: Performance of matching and sorting (n=241): time 0.02159/0.5002, allocations: 11.91 MB / 470.8 MB, free: 29.49 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.946e-05/0.5003, allocations: 73.41 kB / 470.9 MB, free: 29.41 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003318/0.5036, allocations: 2.81 MB / 473.7 MB, free: 26.59 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002521/0.5039, allocations: 65.7 kB / 473.8 MB, free: 26.52 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001019/0.5049, allocations: 2.332 MB / 476.1 MB, free: 24.16 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005539/0.5055, allocations: 0.8347 MB / 476.9 MB, free: 23.34 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001353/0.5056, allocations: 60 kB / 477 MB, free: 23.28 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001317/0.5058, allocations: 424.2 kB / 477.4 MB, free: 22.86 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001856/0.5076, allocations: 1.357 MB / 478.7 MB, free: 21.5 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002088/0.5097, allocations: 2.217 MB / 481 MB, free: 18.89 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002089/0.5118, allocations: 1.736 MB / 482.7 MB, free: 17.14 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.106e-05/0.5119, allocations: 10.52 kB / 482.7 MB, free: 17.13 MB / 350.1 MB Notification: Performance of matching and sorting (n=386) (initialization): time 0.006275/0.5181, allocations: 4.664 MB / 487.4 MB, free: 12.38 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.802e-05/0.5182, allocations: 16 kB / 487.4 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.851e-05/0.5182, allocations: 28 kB / 487.4 MB, free: 12.33 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001401/0.5196, allocations: 0.6686 MB / 488.1 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002296/0.5219, allocations: 0.7137 MB / 488.8 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007325/0.5293, allocations: 9.551 MB / 498.4 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002631/0.5319, allocations: 187.8 kB / 498.5 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003673/0.5323, allocations: 128 kB / 498.7 MB, free: 0.5391 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 123 * 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 (353): * Single equations (assignments): 347 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(6,75.0%) 19,(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003092/0.5354, allocations: 1.522 MB / 0.4885 GB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007372/0.5362, allocations: 324 kB / 0.4888 GB, free: 14.69 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007495/0.5437, allocations: 4.181 MB / 0.4929 GB, free: 10.43 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.327e-05/0.5437, allocations: 20 kB / 0.4929 GB, free: 10.41 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.621e-05/0.5438, allocations: 12 kB / 0.4929 GB, free: 10.4 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.74e-05/0.5438, allocations: 11.95 kB / 0.4929 GB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01633/0.5601, allocations: 8.924 MB / 0.5016 GB, free: 1.352 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-05/0.5602, allocations: 4 kB / 0.5016 GB, free: 1.348 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00181/0.562, allocations: 411.9 kB / 0.502 GB, free: 0.9453 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002239/0.5642, allocations: 0.8727 MB / 0.5029 GB, free: 52 kB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002075/0.5645, allocations: 63.97 kB / 0.5029 GB, free: 15.99 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01549/0.58, allocations: 15.44 MB / 0.518 GB, free: 15.62 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.473e-06/0.58, allocations: 7.938 kB / 0.518 GB, free: 15.62 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00984/0.5898, allocations: 6.269 MB / 0.5241 GB, free: 9.098 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001957/0.5918, allocations: 0.6649 MB / 0.5248 GB, free: 8.41 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006005/0.5925, allocations: 59.98 kB / 0.5248 GB, free: 8.352 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001565/0.594, allocations: 151.8 kB / 0.525 GB, free: 8.203 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003849/0.5944, allocations: 177.7 kB / 0.5251 GB, free: 8.031 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000145/0.5946, allocations: 72.22 kB / 0.5252 GB, free: 7.961 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00292/0.5975, allocations: 1.885 MB / 0.5271 GB, free: 6.078 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.5975, allocations: 4 kB / 0.5271 GB, free: 6.074 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003449/0.601, allocations: 0.9661 MB / 0.528 GB, free: 5.113 MB / 398.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 (193): * Single equations (assignments): 186 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(6,72.2%) 19,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 1,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005426/0.6015, allocations: 235 kB / 0.5282 GB, free: 4.883 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.006383/0.6079, allocations: 4.154 MB / 0.5323 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/0.608, allocations: 0 / 0.5323 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004378/0.6124, allocations: 2.755 MB / 0.535 GB, free: 13.8 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003888/0.6163, allocations: 0.7794 MB / 0.5357 GB, free: 13.03 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01644/0.6327, allocations: 11.5 MB / 0.547 GB, free: 1.461 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003194/0.6359, allocations: 3.4 MB / 0.5503 GB, free: 14.02 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002606/0.6386, allocations: 0.7619 MB / 0.551 GB, free: 13.26 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000611/0.6392, allocations: 223.4 kB / 0.5512 GB, free: 13.04 MB / 430.1 MB Notification: Performance of SimCode: time 6.01e-07/0.6392, allocations: 0 / 0.5512 GB, free: 13.04 MB / 430.1 MB Notification: Performance of Templates: time 0.232/0.8712, allocations: 45 MB / 0.5952 GB, free: 124.1 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches