Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_cpp_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_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001023/0.001023, allocations: 202.8 kB / 18.07 MB, free: 3.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.228/1.228, allocations: 226.5 MB / 245.4 MB, free: 8.23 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007504/0.0007504, allocations: 90.91 kB / 297.4 MB, free: 6.902 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003335/0.0003335, allocations: 8 kB / 357.4 MB, free: 10.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2088/0.2091, allocations: 51.27 MB / 408.7 MB, free: 27.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3103/0.5194, allocations: 127.4 MB / 0.5235 GB, free: 90.02 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002952/0.5198, allocations: 105.4 kB / 0.5236 GB, free: 89.96 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2411/0.7609, allocations: 119.1 MB / 0.6399 GB, free: 2.34 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.7609, allocations: 0 / 0.6399 GB, free: 2.34 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003628/0.7613, allocations: 131.8 kB / 0.64 GB, free: 2.211 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.01346/0.7748, allocations: 5.381 MB / 0.6453 GB, free: 12.75 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.393e-05/0.7748, allocations: 12.03 kB / 0.6453 GB, free: 12.73 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004845/0.7797, allocations: 0.962 MB / 0.6463 GB, free: 11.77 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008125/0.7878, allocations: 3.887 MB / 0.6501 GB, free: 7.801 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003336/0.7882, allocations: 390.6 kB / 0.6504 GB, free: 7.418 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001188/0.7894, allocations: 0.5003 MB / 0.6509 GB, free: 6.918 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0123/0.8017, allocations: 6.725 MB / 0.6575 GB, free: 15.99 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001193/0.8019, allocations: 15.84 kB / 0.6575 GB, free: 15.98 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005046/0.8024, allocations: 224 kB / 0.6577 GB, free: 15.76 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000208/0.8026, allocations: 230.2 kB / 0.6579 GB, free: 15.53 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009842/0.8124, allocations: 5.451 MB / 0.6633 GB, free: 10.07 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2132/1.026, allocations: 21.23 MB / 0.684 GB, free: 50.36 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006056/1.032, allocations: 8.862 MB / 0.6926 GB, free: 44.21 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002695/1.034, allocations: 2.107 MB / 0.6947 GB, free: 44.17 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008691/1.043, allocations: 6.298 MB / 0.7008 GB, free: 43.04 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.699e-05/1.043, allocations: 58.94 kB / 0.7009 GB, free: 43 MB / 442.7 MB Notification: Performance of pre-optimization done (n=210): time 3.276e-06/1.043, allocations: 0 / 0.7009 GB, free: 43 MB / 442.7 MB Notification: Performance of matching and sorting (n=234): time 0.02136/1.065, allocations: 11.84 MB / 0.7125 GB, free: 40.78 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.797e-05/1.065, allocations: 77.17 kB / 0.7125 GB, free: 40.71 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003703/1.068, allocations: 2.87 MB / 0.7153 GB, free: 40.46 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002057/1.069, allocations: 62.86 kB / 0.7154 GB, free: 40.43 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001126/1.07, allocations: 2.352 MB / 0.7177 GB, free: 39.67 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004619/1.07, allocations: 0.8113 MB / 0.7185 GB, free: 39.17 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001508/1.07, allocations: 57.88 kB / 0.7185 GB, free: 39.17 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001251/1.071, allocations: 425.2 kB / 0.719 GB, free: 38.86 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00186/1.072, allocations: 1.335 MB / 0.7203 GB, free: 38.85 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002082/1.074, allocations: 2.22 MB / 0.7224 GB, free: 37.82 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004099/1.079, allocations: 3.777 MB / 0.7261 GB, free: 36.77 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.58e-05/1.079, allocations: 10.94 kB / 0.7261 GB, free: 36.77 MB / 442.7 MB Notification: Performance of matching and sorting (n=381) (initialization): time 0.00684/1.085, allocations: 4.645 MB / 0.7307 GB, free: 36.32 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.255e-05/1.086, allocations: 16.91 kB / 0.7307 GB, free: 36.32 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.801e-05/1.086, allocations: 29.78 kB / 0.7307 GB, free: 36.32 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001619/1.087, allocations: 0.7191 MB / 0.7314 GB, free: 36.27 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002332/1.09, allocations: 0.6937 MB / 0.7321 GB, free: 36.27 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008383/1.098, allocations: 9.397 MB / 0.7413 GB, free: 31.1 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003146/1.101, allocations: 191.8 kB / 0.7414 GB, free: 31.09 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003266/1.101, allocations: 134.2 kB / 0.7416 GB, free: 31.07 MB / 442.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.003187/1.105, allocations: 1.52 MB / 0.7431 GB, free: 30.29 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007674/1.105, allocations: 322.9 kB / 0.7434 GB, free: 30.13 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00683/1.112, allocations: 4.17 MB / 0.7474 GB, free: 28.37 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.651e-05/1.112, allocations: 21.34 kB / 0.7475 GB, free: 28.37 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.5e-05/1.112, allocations: 10.28 kB / 0.7475 GB, free: 28.37 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.162e-05/1.112, allocations: 15.66 kB / 0.7475 GB, free: 28.37 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01431/1.127, allocations: 8.829 MB / 0.7561 GB, free: 24.71 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.338e-05/1.127, allocations: 3.844 kB / 0.7561 GB, free: 24.71 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00157/1.128, allocations: 384.8 kB / 0.7565 GB, free: 24.7 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002285/1.131, allocations: 0.9465 MB / 0.7574 GB, free: 24.43 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002282/1.131, allocations: 69.59 kB / 0.7575 GB, free: 24.39 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01288/1.144, allocations: 15.52 MB / 0.7726 GB, free: 12.35 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/1.144, allocations: 6.312 kB / 0.7726 GB, free: 12.35 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008823/1.153, allocations: 5.894 MB / 0.7784 GB, free: 9.727 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001766/1.154, allocations: 0.6809 MB / 0.779 GB, free: 9.289 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000561/1.155, allocations: 54.55 kB / 0.7791 GB, free: 9.254 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001544/1.157, allocations: 157.8 kB / 0.7792 GB, free: 9.219 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004386/1.157, allocations: 175 kB / 0.7794 GB, free: 9.195 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001536/1.157, allocations: 68.64 kB / 0.7795 GB, free: 9.18 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002983/1.16, allocations: 1.939 MB / 0.7814 GB, free: 8.441 MB / 442.7 MB Notification: Performance of sort global known variables: time 5.21e-07/1.16, allocations: 0 / 0.7814 GB, free: 8.441 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004339/1.165, allocations: 1.031 MB / 0.7824 GB, free: 8.332 MB / 442.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,72.2%) 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.0008428/1.165, allocations: 482.9 kB / 0.7828 GB, free: 8.145 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006087/1.171, allocations: 4.111 MB / 0.7869 GB, free: 6.348 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.925e-06/1.172, allocations: 3.594 kB / 0.7869 GB, free: 6.348 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003787/1.175, allocations: 2.752 MB / 0.7895 GB, free: 4.855 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005094/1.18, allocations: 0.8127 MB / 0.7903 GB, free: 4.625 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01743/1.198, allocations: 11.53 MB / 0.8016 GB, free: 11.48 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003154/1.201, allocations: 3.241 MB / 0.8048 GB, free: 8.957 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001143/1.202, allocations: 249.2 kB / 0.805 GB, free: 8.734 MB / 458.7 MB Notification: Performance of SimCode: time 6.71e-07/1.202, allocations: 0 / 0.805 GB, free: 8.734 MB / 458.7 MB Notification: Performance of Templates: time 0.6409/1.843, allocations: 228.2 MB / 1.028 GB, free: 124.3 MB / 0.5105 GB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.makefile (rm -f Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.sim & ./Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches