Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_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_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_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.001678/0.001678, allocations: 196.1 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.328/1.328, allocations: 225.4 MB / 240.1 MB, free: 15.09 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008324/0.0008326, allocations: 92.55 kB / 292.1 MB, free: 5.938 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.066e-05/3.084e-05, allocations: 0 / 350.6 MB, free: 2.5 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09902/0.09907, allocations: 51.48 MB / 402 MB, free: 14.97 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3839/0.483, allocations: 127.2 MB / 0.5168 GB, free: 10.99 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002694/0.4833, allocations: 91.75 kB / 0.5169 GB, free: 10.95 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5296/1.013, allocations: 119.4 MB / 0.6335 GB, free: 78.75 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.226e-06/1.013, allocations: 0 / 0.6335 GB, free: 78.75 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0008238/1.014, allocations: 134.3 kB / 0.6337 GB, free: 78.73 MB / 442.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.01686/1.031, allocations: 4.933 MB / 0.6385 GB, free: 76.83 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.306e-05/1.031, allocations: 11.81 kB / 0.6385 GB, free: 76.82 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005697/1.037, allocations: 0.9525 MB / 0.6394 GB, free: 76.52 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.012/1.049, allocations: 4.427 MB / 0.6437 GB, free: 74.36 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004012/1.049, allocations: 385.4 kB / 0.6441 GB, free: 74.19 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001843/1.051, allocations: 0.5074 MB / 0.6446 GB, free: 74.02 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01749/1.068, allocations: 6.557 MB / 0.651 GB, free: 70.91 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003982/1.069, allocations: 6.562 kB / 0.651 GB, free: 70.91 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002321/1.071, allocations: 221.1 kB / 0.6512 GB, free: 70.75 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003047/1.071, allocations: 234 kB / 0.6514 GB, free: 70.73 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01346/1.085, allocations: 5.242 MB / 0.6566 GB, free: 68.57 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03907/1.124, allocations: 21.22 MB / 0.6773 GB, free: 57.23 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007117/1.131, allocations: 8.74 MB / 0.6858 GB, free: 49.62 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003165/1.134, allocations: 2.015 MB / 0.6878 GB, free: 48.86 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01207/1.147, allocations: 6.265 MB / 0.6939 GB, free: 43.05 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.779e-05/1.147, allocations: 52.83 kB / 0.694 GB, free: 42.99 MB / 442.7 MB Notification: Performance of pre-optimization done (n=208): time 4.779e-06/1.147, allocations: 4 kB / 0.694 GB, free: 42.98 MB / 442.7 MB Notification: Performance of matching and sorting (n=232): time 0.01962/1.166, allocations: 9.317 MB / 0.7031 GB, free: 33.6 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.76e-05/1.166, allocations: 77.34 kB / 0.7031 GB, free: 33.51 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00543/1.172, allocations: 2.509 MB / 0.7056 GB, free: 31 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003471/1.172, allocations: 65.64 kB / 0.7056 GB, free: 30.93 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001499/1.174, allocations: 2.351 MB / 0.7079 GB, free: 28.56 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007134/1.174, allocations: 0.798 MB / 0.7087 GB, free: 27.77 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002744/1.175, allocations: 60 kB / 0.7088 GB, free: 27.71 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001923/1.175, allocations: 432.1 kB / 0.7092 GB, free: 27.28 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001955/1.177, allocations: 1.248 MB / 0.7104 GB, free: 26.03 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002114/1.179, allocations: 2.12 MB / 0.7125 GB, free: 23.52 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002109/1.181, allocations: 1.634 MB / 0.7141 GB, free: 21.86 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.266e-05/1.181, allocations: 8 kB / 0.7141 GB, free: 21.85 MB / 442.7 MB Notification: Performance of matching and sorting (n=379) (initialization): time 0.006871/1.188, allocations: 4.482 MB / 0.7185 GB, free: 17.28 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.861e-05/1.188, allocations: 16 kB / 0.7185 GB, free: 17.26 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.646e-05/1.188, allocations: 28 kB / 0.7185 GB, free: 17.23 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00183/1.19, allocations: 0.7189 MB / 0.7192 GB, free: 16.5 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002626/1.193, allocations: 0.6942 MB / 0.7199 GB, free: 15.8 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007927/1.201, allocations: 9.392 MB / 0.7291 GB, free: 5.887 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003517/1.204, allocations: 187.7 kB / 0.7292 GB, free: 5.703 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003495/1.204, allocations: 128 kB / 0.7294 GB, free: 5.578 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (343): * Single equations (assignments): 337 * 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%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006397/1.205, allocations: 284 kB / 0.7296 GB, free: 5.293 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006597/1.206, allocations: 335.9 kB / 0.7299 GB, free: 4.961 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006557/1.212, allocations: 3.997 MB / 0.7338 GB, free: 0.8906 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.561e-05/1.212, allocations: 24 kB / 0.7339 GB, free: 0.8672 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.263e-05/1.212, allocations: 12 kB / 0.7339 GB, free: 0.8555 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.928e-05/1.212, allocations: 15.91 kB / 0.7339 GB, free: 0.8398 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01897/1.231, allocations: 8.634 MB / 0.7423 GB, free: 8.094 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.218e-05/1.231, allocations: 4.375 kB / 0.7423 GB, free: 8.09 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001701/1.233, allocations: 375.5 kB / 0.7427 GB, free: 7.723 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002512/1.236, allocations: 0.9465 MB / 0.7436 GB, free: 6.754 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001937/1.236, allocations: 59.97 kB / 0.7437 GB, free: 6.695 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3034/1.539, allocations: 15.47 MB / 0.7588 GB, free: 81.83 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.089e-06/1.539, allocations: 6.562 kB / 0.7588 GB, free: 81.83 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009071/1.548, allocations: 5.908 MB / 0.7646 GB, free: 80.91 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002058/1.55, allocations: 0.6686 MB / 0.7652 GB, free: 80.81 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004963/1.551, allocations: 55.25 kB / 0.7653 GB, free: 80.81 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001581/1.553, allocations: 151.3 kB / 0.7654 GB, free: 80.81 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004776/1.553, allocations: 178 kB / 0.7656 GB, free: 80.8 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000155/1.553, allocations: 70.39 kB / 0.7656 GB, free: 80.8 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.003351/1.557, allocations: 1.899 MB / 0.7675 GB, free: 80.64 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.8e-07/1.557, allocations: 3.172 kB / 0.7675 GB, free: 80.64 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003866/1.56, allocations: 1.031 MB / 0.7685 GB, free: 80.64 MB / 458.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (178): * Single equations (assignments): 171 * 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.001024/1.561, allocations: 0.5498 MB / 0.769 GB, free: 80.52 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005999/1.567, allocations: 3.945 MB / 0.7729 GB, free: 79.8 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.903e-06/1.568, allocations: 2.688 kB / 0.7729 GB, free: 79.8 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004068/1.572, allocations: 2.669 MB / 0.7755 GB, free: 78.98 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004724/1.576, allocations: 0.7886 MB / 0.7763 GB, free: 78.97 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01846/1.595, allocations: 7.892 MB / 0.784 GB, free: 77.01 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004354/1.599, allocations: 3.414 MB / 0.7873 GB, free: 76.16 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003352/1.603, allocations: 0.7605 MB / 0.7881 GB, free: 76.08 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007467/1.603, allocations: 216.1 kB / 0.7883 GB, free: 76.07 MB / 458.7 MB Notification: Performance of SimCode: time 2.234e-06/1.603, allocations: 0 / 0.7883 GB, free: 76.07 MB / 458.7 MB Notification: Performance of Templates: time 0.0846/1.688, allocations: 50.24 MB / 0.8373 GB, free: 71.76 MB / 458.7 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.sim & ./Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches