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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.0014/0.0014, allocations: 179.9 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.35/1.35, allocations: 223.2 MB / 240.3 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008501/0.0008502, allocations: 91.2 kB / 291.5 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002271/0.0002271, allocations: 11.94 kB / 351.1 MB, free: 15.3 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2154/0.2157, allocations: 50.4 MB / 401.5 MB, free: 32.6 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2938/0.5096, allocations: 126.2 MB / 0.5154 GB, free: 99.73 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002303/0.5098, allocations: 99.58 kB / 0.5155 GB, free: 99.68 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2462/0.7561, allocations: 116.2 MB / 0.629 GB, free: 15.12 MB / 410.7 MB Notification: Performance of FrontEnd: time 4.459e-06/0.7561, allocations: 0 / 0.629 GB, free: 15.12 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004845/0.7566, allocations: 139.8 kB / 0.6291 GB, free: 14.98 MB / 410.7 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.01673/0.7734, allocations: 5.384 MB / 0.6344 GB, free: 9.523 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.736e-05/0.7734, allocations: 12.03 kB / 0.6344 GB, free: 9.512 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005207/0.7786, allocations: 0.9534 MB / 0.6353 GB, free: 8.551 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01097/0.7896, allocations: 4.442 MB / 0.6396 GB, free: 4.031 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003786/0.79, allocations: 386.2 kB / 0.64 GB, free: 3.652 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001528/0.7916, allocations: 0.4998 MB / 0.6405 GB, free: 3.152 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01318/0.8048, allocations: 6.693 MB / 0.647 GB, free: 12.26 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001151/0.8049, allocations: 11.91 kB / 0.647 GB, free: 12.25 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005101/0.8054, allocations: 224 kB / 0.6473 GB, free: 12.03 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002272/0.8057, allocations: 234.2 kB / 0.6475 GB, free: 11.8 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01077/0.8165, allocations: 5.436 MB / 0.6528 GB, free: 6.352 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.258/1.075, allocations: 21.14 MB / 0.6734 GB, free: 45.89 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006335/1.081, allocations: 8.597 MB / 0.6818 GB, free: 40.02 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007249/1.088, allocations: 5.072 MB / 0.6868 GB, free: 39.14 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.33e-05/1.088, allocations: 59.19 kB / 0.6868 GB, free: 39.1 MB / 426.7 MB Notification: Performance of pre-optimization done (n=222): time 3.477e-06/1.088, allocations: 0 / 0.6868 GB, free: 39.1 MB / 426.7 MB Notification: Performance of matching and sorting (n=247): time 0.02293/1.111, allocations: 11.96 MB / 0.6985 GB, free: 37.1 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.29e-05/1.111, allocations: 76.38 kB / 0.6986 GB, free: 37.04 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003851/1.115, allocations: 2.516 MB / 0.701 GB, free: 36.81 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002195/1.115, allocations: 67.39 kB / 0.7011 GB, free: 36.78 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001387/1.117, allocations: 2.327 MB / 0.7034 GB, free: 36.03 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005928/1.117, allocations: 0.8455 MB / 0.7042 GB, free: 35.51 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001512/1.118, allocations: 61.41 kB / 0.7043 GB, free: 35.51 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001462/1.118, allocations: 425.6 kB / 0.7047 GB, free: 35.2 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001914/1.12, allocations: 1.37 MB / 0.706 GB, free: 35.19 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002214/1.122, allocations: 2.237 MB / 0.7082 GB, free: 34.2 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002314/1.124, allocations: 1.752 MB / 0.7099 GB, free: 34.15 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-05/1.124, allocations: 10.31 kB / 0.7099 GB, free: 34.15 MB / 426.7 MB Notification: Performance of matching and sorting (n=390) (initialization): time 0.007134/1.131, allocations: 4.735 MB / 0.7145 GB, free: 33.71 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.734e-05/1.131, allocations: 14.58 kB / 0.7145 GB, free: 33.71 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.854e-05/1.131, allocations: 27.91 kB / 0.7146 GB, free: 33.71 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001593/1.133, allocations: 0.7309 MB / 0.7153 GB, free: 33.65 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002561/1.136, allocations: 0.7147 MB / 0.716 GB, free: 33.65 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007973/1.144, allocations: 9.615 MB / 0.7254 GB, free: 27.95 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00317/1.147, allocations: 201.2 kB / 0.7256 GB, free: 27.89 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005405/1.147, allocations: 128.8 kB / 0.7257 GB, free: 27.87 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 122 * 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 (354): * Single equations (assignments): 348 * 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%) 22,(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003542/1.151, allocations: 1.534 MB / 0.7272 GB, free: 27.09 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009442/1.152, allocations: 321.5 kB / 0.7275 GB, free: 26.93 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007446/1.159, allocations: 4.284 MB / 0.7317 GB, free: 25.11 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-05/1.159, allocations: 24.69 kB / 0.7317 GB, free: 25.11 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.508e-05/1.159, allocations: 9.844 kB / 0.7317 GB, free: 25.11 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-05/1.159, allocations: 16.52 kB / 0.7317 GB, free: 25.11 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01637/1.176, allocations: 9.157 MB / 0.7407 GB, free: 21.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.161e-05/1.176, allocations: 3.875 kB / 0.7407 GB, free: 21.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001669/1.178, allocations: 407.1 kB / 0.7411 GB, free: 21.29 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002343/1.18, allocations: 0.9432 MB / 0.742 GB, free: 21.02 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002231/1.18, allocations: 71.33 kB / 0.742 GB, free: 20.98 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01312/1.193, allocations: 15.84 MB / 0.7575 GB, free: 8.82 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.029e-06/1.193, allocations: 5.594 kB / 0.7575 GB, free: 8.82 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009898/1.203, allocations: 6.413 MB / 0.7638 GB, free: 5.641 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002137/1.205, allocations: 0.6951 MB / 0.7645 GB, free: 5.195 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001028/1.207, allocations: 56.64 kB / 0.7645 GB, free: 5.16 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002358/1.209, allocations: 160.4 kB / 0.7647 GB, free: 5.125 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00047/1.209, allocations: 186.5 kB / 0.7649 GB, free: 5.09 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000194/1.21, allocations: 74.89 kB / 0.7649 GB, free: 5.07 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003791/1.213, allocations: 1.907 MB / 0.7668 GB, free: 4.348 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.1e-07/1.213, allocations: 0 / 0.7668 GB, free: 4.348 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004854/1.218, allocations: 1.032 MB / 0.7678 GB, free: 4.234 MB / 426.7 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 {(1,100.0%) 5,(6,75.0%) 22,(1,100.0%) 1,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009879/1.219, allocations: 478.5 kB / 0.7683 GB, free: 4.051 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00651/1.226, allocations: 4.22 MB / 0.7724 GB, free: 2.207 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.685e-06/1.226, allocations: 3.625 kB / 0.7724 GB, free: 2.207 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004055/1.23, allocations: 2.846 MB / 0.7752 GB, free: 416 kB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005064/1.235, allocations: 0.8588 MB / 0.776 GB, free: 0 / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02223/1.257, allocations: 11.58 MB / 0.7873 GB, free: 5.426 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004989/1.262, allocations: 3.416 MB / 0.7906 GB, free: 2.84 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003668/1.266, allocations: 0.7623 MB / 0.7914 GB, free: 2.312 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001003/1.267, allocations: 229.7 kB / 0.7916 GB, free: 2.105 MB / 442.7 MB Notification: Performance of SimCode: time 1.483e-06/1.267, allocations: 0 / 0.7916 GB, free: 2.105 MB / 442.7 MB Notification: Performance of Templates: time 0.3423/1.609, allocations: 49.77 MB / 0.8402 GB, free: 91.02 MB / 474.7 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