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.00095/0.0009502, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.366/1.366, allocations: 221.5 MB / 230.3 MB, free: 7.602 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008623/0.0008621, allocations: 92.44 kB / 281.1 MB, free: 5.348 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.411e-05/1.412e-05, allocations: 4 kB / 337.1 MB, free: 10.03 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1345/0.1345, allocations: 50.42 MB / 387.5 MB, free: 7.574 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.437/0.5716, allocations: 125.5 MB / 0.5009 GB, free: 1.258 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002531/0.5719, allocations: 95.94 kB / 0.501 GB, free: 1.164 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5637/1.136, allocations: 114.8 MB / 0.6131 GB, free: 91.45 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.945e-06/1.136, allocations: 0 / 0.6131 GB, free: 91.45 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0006583/1.136, allocations: 133.4 kB / 0.6133 GB, free: 91.42 MB / 426.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.01648/1.153, allocations: 4.901 MB / 0.618 GB, free: 88.34 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.983e-05/1.153, allocations: 11.31 kB / 0.6181 GB, free: 88.34 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005855/1.159, allocations: 0.9574 MB / 0.619 GB, free: 87.86 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01173/1.171, allocations: 4.395 MB / 0.6233 GB, free: 83.81 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000304/1.171, allocations: 168 kB / 0.6234 GB, free: 83.65 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002121/1.173, allocations: 307.8 kB / 0.6237 GB, free: 83.35 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01166/1.185, allocations: 4.925 MB / 0.6285 GB, free: 78.42 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01927/1.204, allocations: 5.811 MB / 0.6342 GB, free: 72.41 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002046/1.204, allocations: 11.91 kB / 0.6342 GB, free: 72.4 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008563/1.205, allocations: 8 kB / 0.6342 GB, free: 72.39 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002081/1.205, allocations: 234.2 kB / 0.6345 GB, free: 72.16 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03675/1.242, allocations: 20.16 MB / 0.6541 GB, free: 51.7 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006874/1.249, allocations: 8.387 MB / 0.6623 GB, free: 42.37 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002902/1.252, allocations: 1.942 MB / 0.6642 GB, free: 40.43 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01203/1.264, allocations: 5.86 MB / 0.67 GB, free: 34.5 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.998e-05/1.264, allocations: 52.56 kB / 0.67 GB, free: 34.44 MB / 426.7 MB Notification: Performance of pre-optimization done (n=212): time 3.988e-06/1.264, allocations: 4 kB / 0.67 GB, free: 34.44 MB / 426.7 MB Notification: Performance of matching and sorting (n=236): time 0.01541/1.28, allocations: 8.196 MB / 0.678 GB, free: 26.16 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.13e-05/1.28, allocations: 77.41 kB / 0.6781 GB, free: 26.08 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003104/1.283, allocations: 2.031 MB / 0.6801 GB, free: 24.04 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003389/1.283, allocations: 29.7 kB / 0.6801 GB, free: 24 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001107/1.284, allocations: 2.335 MB / 0.6824 GB, free: 21.64 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006812/1.285, allocations: 0.7853 MB / 0.6831 GB, free: 20.84 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001483/1.285, allocations: 4 kB / 0.6832 GB, free: 20.84 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001513/1.285, allocations: 424.2 kB / 0.6836 GB, free: 20.41 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001517/1.287, allocations: 1.197 MB / 0.6847 GB, free: 19.21 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001836/1.289, allocations: 2.058 MB / 0.6867 GB, free: 16.77 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002352/1.291, allocations: 1.689 MB / 0.6884 GB, free: 15.05 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.797e-05/1.291, allocations: 8 kB / 0.6884 GB, free: 15.05 MB / 426.7 MB Notification: Performance of matching and sorting (n=383) (initialization): time 0.006626/1.298, allocations: 4.282 MB / 0.6926 GB, free: 10.68 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.644e-05/1.298, allocations: 16 kB / 0.6926 GB, free: 10.66 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.563e-05/1.298, allocations: 31.95 kB / 0.6926 GB, free: 10.63 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001543/1.299, allocations: 0.7063 MB / 0.6933 GB, free: 9.906 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00269/1.302, allocations: 0.6981 MB / 0.694 GB, free: 9.207 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007887/1.31, allocations: 9.001 MB / 0.7028 GB, free: 15.75 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003104/1.313, allocations: 123.8 kB / 0.7029 GB, free: 15.62 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005053/1.314, allocations: 128 kB / 0.703 GB, free: 15.5 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 (347): * Single equations (assignments): 341 * 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.0005241/1.314, allocations: 195.9 kB / 0.7032 GB, free: 15.3 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006539/1.315, allocations: 296.3 kB / 0.7035 GB, free: 15.01 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007404/1.322, allocations: 3.909 MB / 0.7073 GB, free: 11.02 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.313e-05/1.322, allocations: 24 kB / 0.7073 GB, free: 11 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.503e-05/1.322, allocations: 11.95 kB / 0.7073 GB, free: 10.99 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.834e-05/1.322, allocations: 11.95 kB / 0.7074 GB, free: 10.98 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01615/1.338, allocations: 7.942 MB / 0.7151 GB, free: 2.941 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.077e-06/1.339, allocations: 4.031 kB / 0.7151 GB, free: 2.938 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001717/1.34, allocations: 387.5 kB / 0.7155 GB, free: 2.559 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002456/1.343, allocations: 0.9353 MB / 0.7164 GB, free: 1.605 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002317/1.343, allocations: 31.97 kB / 0.7164 GB, free: 1.574 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3341/1.677, allocations: 14.86 MB / 0.7309 GB, free: 88.63 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.101e-05/1.677, allocations: 3.234 kB / 0.7309 GB, free: 88.63 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01004/1.687, allocations: 5.84 MB / 0.7366 GB, free: 87.75 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001907/1.689, allocations: 0.636 MB / 0.7373 GB, free: 87.66 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000476/1.69, allocations: 17.97 kB / 0.7373 GB, free: 87.66 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001592/1.691, allocations: 119 kB / 0.7374 GB, free: 87.66 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005579/1.692, allocations: 181.4 kB / 0.7376 GB, free: 87.66 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001739/1.692, allocations: 67.7 kB / 0.7376 GB, free: 87.66 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002814/1.695, allocations: 1.506 MB / 0.7391 GB, free: 87.51 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.01e-07/1.695, allocations: 0 / 0.7391 GB, free: 87.51 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004399/1.699, allocations: 0.894 MB / 0.74 GB, free: 87.51 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 () * 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.0009287/1.7, allocations: 426.8 kB / 0.7404 GB, free: 87.41 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006642/1.707, allocations: 3.776 MB / 0.7441 GB, free: 86.74 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/1.707, allocations: 9.797 kB / 0.7441 GB, free: 86.74 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00404/1.711, allocations: 2.554 MB / 0.7466 GB, free: 85.98 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003623/1.715, allocations: 0.5829 MB / 0.7471 GB, free: 85.96 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01305/1.728, allocations: 7.701 MB / 0.7547 GB, free: 84.07 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002915/1.731, allocations: 3.409 MB / 0.758 GB, free: 83.22 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002741/1.733, allocations: 0.7203 MB / 0.7587 GB, free: 83.14 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000553/1.734, allocations: 203.3 kB / 0.7589 GB, free: 83.14 MB / 442.7 MB Notification: Performance of SimCode: time 9.01e-07/1.734, allocations: 0 / 0.7589 GB, free: 83.14 MB / 442.7 MB Notification: Performance of Templates: time 0.06565/1.8, allocations: 39.47 MB / 0.7974 GB, free: 74.04 MB / 442.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