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.0008799/0.0008799, allocations: 172.2 kB / 17.4 MB, free: 4.297 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.399/1.399, allocations: 223.3 MB / 241.4 MB, free: 9.957 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.0008859/0.0008857, allocations: 102.5 kB / 292.6 MB, free: 10.54 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003219/0.000322, allocations: 11.94 kB / 352.4 MB, free: 14.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2134/0.2138, allocations: 50.4 MB / 402.8 MB, free: 32.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3174/0.5312, allocations: 126.5 MB / 0.5168 GB, free: 99.17 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000251/0.5315, allocations: 95.2 kB / 0.5169 GB, free: 99.12 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2728/0.8043, allocations: 116.1 MB / 0.6303 GB, free: 14.72 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.933e-06/0.8044, allocations: 0 / 0.6303 GB, free: 14.72 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005601/0.8049, allocations: 139.8 kB / 0.6304 GB, free: 14.59 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.02255/0.8275, allocations: 5.334 MB / 0.6356 GB, free: 9.172 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.685e-05/0.8276, allocations: 12.02 kB / 0.6356 GB, free: 9.16 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008474/0.8361, allocations: 0.9543 MB / 0.6365 GB, free: 8.199 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01152/0.8476, allocations: 3.86 MB / 0.6403 GB, free: 4.262 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000363/0.848, allocations: 390.7 kB / 0.6407 GB, free: 3.879 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001423/0.8494, allocations: 0.4964 MB / 0.6412 GB, free: 3.383 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01419/0.8637, allocations: 6.733 MB / 0.6477 GB, free: 12.45 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000164/0.8638, allocations: 11.84 kB / 0.6478 GB, free: 12.44 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008372/0.8647, allocations: 223.9 kB / 0.648 GB, free: 12.22 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000227/0.8649, allocations: 242.2 kB / 0.6482 GB, free: 11.98 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01095/0.8759, allocations: 5.44 MB / 0.6535 GB, free: 6.531 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.239/1.115, allocations: 21.15 MB / 0.6742 GB, free: 45.21 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006031/1.121, allocations: 8.604 MB / 0.6826 GB, free: 39.34 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002547/1.124, allocations: 2.094 MB / 0.6846 GB, free: 39.31 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008762/1.132, allocations: 6.051 MB / 0.6905 GB, free: 38.39 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.659e-05/1.132, allocations: 54.16 kB / 0.6906 GB, free: 38.35 MB / 426.7 MB Notification: Performance of pre-optimization done (n=210): time 3.888e-06/1.132, allocations: 3.875 kB / 0.6906 GB, free: 38.35 MB / 426.7 MB Notification: Performance of matching and sorting (n=234): time 0.01999/1.152, allocations: 11.84 MB / 0.7021 GB, free: 36.09 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.816e-05/1.152, allocations: 75.69 kB / 0.7022 GB, free: 36.02 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003044/1.155, allocations: 2.854 MB / 0.705 GB, free: 35.78 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001242/1.156, allocations: 62.05 kB / 0.7051 GB, free: 35.75 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009849/1.157, allocations: 2.344 MB / 0.7074 GB, free: 34.99 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00038/1.157, allocations: 0.8162 MB / 0.7081 GB, free: 34.48 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001487/1.157, allocations: 61.38 kB / 0.7082 GB, free: 34.48 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001139/1.157, allocations: 421.8 kB / 0.7086 GB, free: 34.17 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001665/1.159, allocations: 1.33 MB / 0.7099 GB, free: 34.16 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00194/1.161, allocations: 2.223 MB / 0.7121 GB, free: 33.14 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00382/1.165, allocations: 3.771 MB / 0.7158 GB, free: 32.08 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.094e-05/1.165, allocations: 10.41 kB / 0.7158 GB, free: 32.08 MB / 426.7 MB Notification: Performance of matching and sorting (n=381) (initialization): time 0.005846/1.171, allocations: 4.647 MB / 0.7203 GB, free: 31.64 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.723e-05/1.171, allocations: 18.12 kB / 0.7203 GB, free: 31.64 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.533e-05/1.171, allocations: 28.56 kB / 0.7204 GB, free: 31.64 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001351/1.172, allocations: 0.7205 MB / 0.7211 GB, free: 31.52 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00214/1.174, allocations: 0.6928 MB / 0.7217 GB, free: 31.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006932/1.181, allocations: 9.396 MB / 0.7309 GB, free: 24.54 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001871/1.183, allocations: 191.7 kB / 0.7311 GB, free: 24.49 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001817/1.183, allocations: 138.5 kB / 0.7312 GB, free: 24.46 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 125 * 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 (345): * Single equations (assignments): 339 * 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,72.2%) 22,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002117/1.185, allocations: 1.521 MB / 0.7327 GB, free: 23.69 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000341/1.186, allocations: 319.2 kB / 0.733 GB, free: 23.53 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005675/1.191, allocations: 4.164 MB / 0.7371 GB, free: 21.77 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.236e-05/1.191, allocations: 23.94 kB / 0.7371 GB, free: 21.77 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.062e-05/1.191, allocations: 9.969 kB / 0.7371 GB, free: 21.77 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.814e-05/1.191, allocations: 14.77 kB / 0.7371 GB, free: 21.76 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01135/1.203, allocations: 8.817 MB / 0.7457 GB, free: 18.11 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.778e-06/1.203, allocations: 3.938 kB / 0.7457 GB, free: 18.11 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001426/1.204, allocations: 381.2 kB / 0.7461 GB, free: 18.09 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002014/1.206, allocations: 0.9405 MB / 0.747 GB, free: 17.81 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001454/1.206, allocations: 65.05 kB / 0.7471 GB, free: 17.78 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01143/1.218, allocations: 15.54 MB / 0.7623 GB, free: 5.699 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/1.218, allocations: 6.406 kB / 0.7623 GB, free: 5.699 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007987/1.226, allocations: 5.885 MB / 0.768 GB, free: 3.082 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001476/1.227, allocations: 0.6754 MB / 0.7687 GB, free: 2.645 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004498/1.228, allocations: 59.14 kB / 0.7687 GB, free: 2.609 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001492/1.229, allocations: 147.6 kB / 0.7689 GB, free: 2.578 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003826/1.23, allocations: 179.5 kB / 0.769 GB, free: 2.551 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001342/1.23, allocations: 66.67 kB / 0.7691 GB, free: 2.535 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002406/1.232, allocations: 1.931 MB / 0.771 GB, free: 1.801 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.21e-07/1.232, allocations: 0 / 0.771 GB, free: 1.801 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002729/1.235, allocations: 1.017 MB / 0.772 GB, free: 1.695 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * 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 (180): * Single equations (assignments): 173 * 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,75.0%) 22,(1,100.0%) 5,(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.000589/1.236, allocations: 474.6 kB / 0.7724 GB, free: 1.516 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005374/1.241, allocations: 4.11 MB / 0.7764 GB, free: 15.04 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.49e-06/1.241, allocations: 4 kB / 0.7765 GB, free: 15.04 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004128/1.245, allocations: 2.77 MB / 0.7792 GB, free: 12.48 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004384/1.25, allocations: 0.7951 MB / 0.7799 GB, free: 11.86 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01642/1.266, allocations: 11.46 MB / 0.7911 GB, free: 1.367 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003119/1.269, allocations: 3.323 MB / 0.7944 GB, free: 14.78 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002599/1.272, allocations: 0.7507 MB / 0.7951 GB, free: 14.26 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005676/1.272, allocations: 218.6 kB / 0.7953 GB, free: 14.06 MB / 458.7 MB Notification: Performance of SimCode: time 7.31e-07/1.272, allocations: 7.938 kB / 0.7953 GB, free: 14.05 MB / 458.7 MB Notification: Performance of Templates: time 0.2599/1.532, allocations: 49.91 MB / 0.8441 GB, free: 88.37 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/jenkins1/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