Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.006808/0.006807, allocations: 182.6 kB / 16.4 MB, free: 5.754 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.493/3.493, allocations: 205.4 MB / 222.5 MB, free: 9.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001818/0.001819, allocations: 99.33 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006307/0.000631, allocations: 12 kB / 327 MB, free: 188 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6764/0.677, allocations: 47.56 MB / 374.5 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter): time 0.05592/0.733, allocations: 17.42 MB / 392 MB, free: 31.39 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.03077/0.7639, allocations: 6.236 MB / 398.2 MB, free: 25.13 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006186/0.7701, allocations: 119.4 kB / 398.3 MB, free: 25.02 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007002/0.7772, allocations: 1.115 MB / 399.4 MB, free: 23.89 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01283/0.7901, allocations: 1.819 MB / 401.2 MB, free: 22.07 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006746/0.7969, allocations: 0.8748 MB / 402.1 MB, free: 21.2 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.01583/0.8128, allocations: 4.366 MB / 406.5 MB, free: 16.83 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01286/0.8257, allocations: 3.69 MB / 410.2 MB, free: 13.09 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00654/0.8324, allocations: 2.028 MB / 412.2 MB, free: 11.05 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007884/0.8403, allocations: 2.513 MB / 414.7 MB, free: 8.527 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00283/0.8432, allocations: 336 kB / 415 MB, free: 8.199 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004987/0.8483, allocations: 0.5504 MB / 415.6 MB, free: 7.648 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003993/0.8524, allocations: 1.367 MB / 417 MB, free: 6.277 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00405/0.8565, allocations: 1.19 MB / 418.2 MB, free: 5.078 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01946/0.876, allocations: 8.675 MB / 426.8 MB, free: 12.38 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.111e-06/0.8761, allocations: 0 / 426.8 MB, free: 12.38 MB / 314.7 MB Notification: Performance of FrontEnd: time 4.348e-06/0.8761, allocations: 0 / 426.8 MB, free: 12.38 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0003941/0.8766, allocations: 8 kB / 426.8 MB, free: 12.37 MB / 314.7 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.03435/0.9109, allocations: 5.843 MB / 432.7 MB, free: 6.449 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.547e-05/0.911, allocations: 8.031 kB / 432.7 MB, free: 6.441 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01381/0.9249, allocations: 1.062 MB / 433.7 MB, free: 5.371 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01742/0.9424, allocations: 3.399 MB / 437.1 MB, free: 1.898 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001181/0.9436, allocations: 418.7 kB / 437.6 MB, free: 1.488 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003176/0.9468, allocations: 0.531 MB / 438.1 MB, free: 0.957 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03701/0.9839, allocations: 6.974 MB / 445.1 MB, free: 9.906 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005006/0.9845, allocations: 11.89 kB / 445.1 MB, free: 9.895 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002708/0.9872, allocations: 223.9 kB / 445.3 MB, free: 9.676 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006865/0.988, allocations: 266.6 kB / 445.6 MB, free: 9.414 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03224/1.02, allocations: 5.925 MB / 451.5 MB, free: 3.48 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1398/1.16, allocations: 22.43 MB / 473.9 MB, free: 12.49 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02595/1.186, allocations: 8.281 MB / 482.2 MB, free: 3.324 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02783/1.214, allocations: 5.153 MB / 487.3 MB, free: 14.04 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001284/1.214, allocations: 56.56 kB / 487.4 MB, free: 13.98 MB / 378.7 MB Notification: Performance of pre-optimization done (n=234): time 1.095e-05/1.214, allocations: 0 / 487.4 MB, free: 13.98 MB / 378.7 MB Notification: Performance of matching and sorting (n=256): time 0.07638/1.291, allocations: 11.75 MB / 499.1 MB, free: 1.98 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001094/1.291, allocations: 81.42 kB / 499.2 MB, free: 1.887 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.4806/1.772, allocations: 3.006 MB / 0.4905 GB, free: 102.3 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007423/1.772, allocations: 72.7 kB / 0.4905 GB, free: 102.2 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003396/1.776, allocations: 2.317 MB / 0.4928 GB, free: 101.1 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001737/1.778, allocations: 0.8758 MB / 0.4936 GB, free: 100.4 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004747/1.778, allocations: 63.78 kB / 0.4937 GB, free: 100.4 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0003496/1.779, allocations: 443.4 kB / 0.4941 GB, free: 100 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006624/1.785, allocations: 1.378 MB / 0.4955 GB, free: 99.5 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009164/1.794, allocations: 2.359 MB / 0.4978 GB, free: 97.78 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008298/1.803, allocations: 1.789 MB / 0.4995 GB, free: 97.01 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001438/1.803, allocations: 8.75 kB / 0.4995 GB, free: 97.01 MB / 378.7 MB Notification: Performance of matching and sorting (n=417) (initialization): time 0.02422/1.827, allocations: 4.588 MB / 0.504 GB, free: 95.03 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.704e-05/1.827, allocations: 19.66 kB / 0.504 GB, free: 95.03 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001097/1.828, allocations: 30.88 kB / 0.5041 GB, free: 95.03 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003265/1.831, allocations: 0.5333 MB / 0.5046 GB, free: 94.84 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008997/1.84, allocations: 0.784 MB / 0.5053 GB, free: 94.76 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0181/1.858, allocations: 9.525 MB / 0.5147 GB, free: 86.81 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006862/1.865, allocations: 193.2 kB / 0.5148 GB, free: 86.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001071/1.866, allocations: 151.7 kB / 0.515 GB, free: 86.72 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 140 * 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 (391): * Single equations (assignments): 384 * 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: 5 * 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: 5 {(1,100.0%) 1,(3,100.0%) 12,(1,100.0%) 3,(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007033/1.873, allocations: 1.58 MB / 0.5165 GB, free: 85.86 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001728/1.875, allocations: 346.5 kB / 0.5169 GB, free: 85.69 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01988/1.895, allocations: 4.21 MB / 0.521 GB, free: 82.42 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.203e-05/1.895, allocations: 24 kB / 0.521 GB, free: 82.4 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.369e-05/1.895, allocations: 11.94 kB / 0.521 GB, free: 82.39 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.385e-05/1.895, allocations: 19.89 kB / 0.521 GB, free: 82.37 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04372/1.939, allocations: 9.263 MB / 0.5301 GB, free: 72.95 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.809e-05/1.939, allocations: 8 kB / 0.5301 GB, free: 72.94 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00722/1.946, allocations: 455.4 kB / 0.5305 GB, free: 72.49 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004952/1.951, allocations: 0.7285 MB / 0.5312 GB, free: 71.74 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007728/1.952, allocations: 71.97 kB / 0.5313 GB, free: 71.67 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03467/1.987, allocations: 15.49 MB / 0.5464 GB, free: 55.14 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-05/1.987, allocations: 8 kB / 0.5464 GB, free: 55.13 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02437/2.011, allocations: 6.659 MB / 0.5529 GB, free: 48.06 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003884/2.015, allocations: 0.6998 MB / 0.5536 GB, free: 47.34 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001877/2.017, allocations: 63.92 kB / 0.5537 GB, free: 47.27 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00587/2.023, allocations: 159.8 kB / 0.5538 GB, free: 47.12 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001301/2.025, allocations: 197.6 kB / 0.554 GB, free: 46.93 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006101/2.025, allocations: 71.98 kB / 0.5541 GB, free: 46.86 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.01032/2.036, allocations: 2.02 MB / 0.556 GB, free: 44.84 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.114e-06/2.036, allocations: 0 / 0.556 GB, free: 44.84 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.008803/2.044, allocations: 1.004 MB / 0.557 GB, free: 43.84 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * 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 (217): * Single equations (assignments): 209 * 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: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(3,100.0%) 12,(1,100.0%) 3,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 1,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001368/2.046, allocations: 223.1 kB / 0.5572 GB, free: 43.62 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01657/2.063, allocations: 4.252 MB / 0.5614 GB, free: 39.25 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.008e-05/2.063, allocations: 0 / 0.5614 GB, free: 39.25 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01082/2.073, allocations: 2.83 MB / 0.5642 GB, free: 36.33 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01073/2.084, allocations: 0.8765 MB / 0.565 GB, free: 35.46 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0419/2.126, allocations: 12.13 MB / 0.5769 GB, free: 23.23 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00921/2.136, allocations: 3.435 MB / 0.5802 GB, free: 19.77 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002491/2.138, allocations: 267.4 kB / 0.5805 GB, free: 19.5 MB / 378.7 MB Notification: Performance of SimCode: time 2.384e-06/2.138, allocations: 0 / 0.5805 GB, free: 19.5 MB / 378.7 MB Notification: Performance of Templates: time 1.622/3.76, allocations: 247.8 MB / 0.8224 GB, free: 145.7 MB / 442.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_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/SMPM_Inverter/SMPM_Inverter.csv","../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches