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.0009638/0.0009638, allocations: 175.5 kB / 13.63 MB, free: 1.684 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.295/1.295, allocations: 221.3 MB / 235.5 MB, free: 2.938 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.0008134/0.0008133, allocations: 87.86 kB / 286.5 MB, free: 236 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.334e-05/2.337e-05, allocations: 0 / 343.8 MB, free: 4.297 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08714/0.08718, allocations: 50.41 MB / 394.3 MB, free: 1.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.346/0.4332, allocations: 126.1 MB / 0.5082 GB, free: 9.293 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000252/0.4335, allocations: 99.77 kB / 0.5083 GB, free: 9.199 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4839/0.9174, allocations: 116.3 MB / 0.6219 GB, free: 83.52 MB / 426.7 MB Notification: Performance of FrontEnd: time 4.178e-06/0.9175, allocations: 3.938 kB / 0.6219 GB, free: 83.52 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0005335/0.9181, allocations: 135.8 kB / 0.622 GB, free: 83.39 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.01896/0.937, allocations: 4.908 MB / 0.6268 GB, free: 78.43 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.307e-05/0.9371, allocations: 15.97 kB / 0.6268 GB, free: 78.41 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008008/0.9451, allocations: 0.9436 MB / 0.6277 GB, free: 77.46 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0156/0.9608, allocations: 4.399 MB / 0.632 GB, free: 72.99 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005229/0.9614, allocations: 386.3 kB / 0.6324 GB, free: 72.61 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002088/0.9635, allocations: 0.4999 MB / 0.6329 GB, free: 72.11 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01989/0.9834, allocations: 6.554 MB / 0.6393 GB, free: 65.36 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001969/0.9836, allocations: 11.89 kB / 0.6393 GB, free: 65.34 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009229/0.9846, allocations: 228.3 kB / 0.6395 GB, free: 65.12 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002745/0.9849, allocations: 238.2 kB / 0.6397 GB, free: 64.89 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.017/1.002, allocations: 5.234 MB / 0.6448 GB, free: 59.64 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05429/1.056, allocations: 21.13 MB / 0.6655 GB, free: 38.02 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01035/1.067, allocations: 8.487 MB / 0.6738 GB, free: 28.58 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004748/1.071, allocations: 2.011 MB / 0.6757 GB, free: 26.56 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01614/1.088, allocations: 5.993 MB / 0.6816 GB, free: 20.43 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.67e-05/1.088, allocations: 60.55 kB / 0.6816 GB, free: 20.36 MB / 426.7 MB Notification: Performance of pre-optimization done (n=208): time 6.231e-06/1.088, allocations: 7.938 kB / 0.6817 GB, free: 20.35 MB / 426.7 MB Notification: Performance of matching and sorting (n=232): time 0.02805/1.116, allocations: 9.304 MB / 0.6907 GB, free: 10.96 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.814e-05/1.116, allocations: 73.41 kB / 0.6908 GB, free: 10.88 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005512/1.121, allocations: 2.5 MB / 0.6932 GB, free: 8.367 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005141/1.122, allocations: 65.7 kB / 0.6933 GB, free: 8.297 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001571/1.124, allocations: 2.346 MB / 0.6956 GB, free: 5.926 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008839/1.124, allocations: 0.7971 MB / 0.6964 GB, free: 5.117 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002138/1.125, allocations: 64 kB / 0.6964 GB, free: 5.055 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001825/1.125, allocations: 424.1 kB / 0.6968 GB, free: 4.633 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002626/1.128, allocations: 1.244 MB / 0.6981 GB, free: 3.387 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003093/1.131, allocations: 2.124 MB / 0.7001 GB, free: 0.875 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003605/1.134, allocations: 1.63 MB / 0.7017 GB, free: 15.22 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.493e-05/1.134, allocations: 8 kB / 0.7017 GB, free: 15.21 MB / 442.7 MB Notification: Performance of matching and sorting (n=379) (initialization): time 0.01128/1.146, allocations: 4.476 MB / 0.7061 GB, free: 10.64 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.872e-05/1.146, allocations: 16 kB / 0.7061 GB, free: 10.63 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.977e-05/1.146, allocations: 28.53 kB / 0.7061 GB, free: 10.6 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002499/1.148, allocations: 0.7175 MB / 0.7068 GB, free: 9.867 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00417/1.152, allocations: 0.6903 MB / 0.7075 GB, free: 9.176 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2984/1.451, allocations: 9.374 MB / 0.7167 GB, free: 89.16 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003178/1.454, allocations: 184 kB / 0.7169 GB, free: 89.16 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005245/1.455, allocations: 126.8 kB / 0.717 GB, free: 89.16 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.000533/1.455, allocations: 284.5 kB / 0.7172 GB, free: 89.05 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007869/1.456, allocations: 325.2 kB / 0.7176 GB, free: 89.05 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007394/1.463, allocations: 4.002 MB / 0.7215 GB, free: 88.68 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.867e-05/1.463, allocations: 27.31 kB / 0.7215 GB, free: 88.68 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.017e-05/1.464, allocations: 21.7 kB / 0.7215 GB, free: 88.68 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.164e-05/1.464, allocations: 10.78 kB / 0.7215 GB, free: 88.68 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01619/1.48, allocations: 8.638 MB / 0.73 GB, free: 87.88 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.298e-05/1.48, allocations: 3.094 kB / 0.73 GB, free: 87.88 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001758/1.482, allocations: 378 kB / 0.7303 GB, free: 87.88 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002814/1.484, allocations: 0.9322 MB / 0.7312 GB, free: 87.82 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003338/1.485, allocations: 60.86 kB / 0.7313 GB, free: 87.82 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01868/1.503, allocations: 15.49 MB / 0.7464 GB, free: 78.86 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.931e-06/1.503, allocations: 3.719 kB / 0.7464 GB, free: 78.86 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008884/1.512, allocations: 5.921 MB / 0.7522 GB, free: 77.93 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001973/1.514, allocations: 0.672 MB / 0.7529 GB, free: 77.81 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005228/1.515, allocations: 50.31 kB / 0.7529 GB, free: 77.81 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001623/1.517, allocations: 152.9 kB / 0.753 GB, free: 77.81 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004681/1.517, allocations: 173.8 kB / 0.7532 GB, free: 77.8 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001496/1.517, allocations: 70.08 kB / 0.7533 GB, free: 77.8 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002849/1.52, allocations: 1.89 MB / 0.7551 GB, free: 77.64 MB / 442.7 MB Notification: Performance of sort global known variables: time 5.31e-07/1.52, allocations: 0 / 0.7551 GB, free: 77.64 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003874/1.524, allocations: 1.014 MB / 0.7561 GB, free: 77.64 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 (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.0009864/1.525, allocations: 0.5461 MB / 0.7566 GB, free: 77.52 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00561/1.531, allocations: 3.948 MB / 0.7605 GB, free: 76.68 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.161e-06/1.531, allocations: 0 / 0.7605 GB, free: 76.68 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003809/1.534, allocations: 2.676 MB / 0.7631 GB, free: 75.22 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00424/1.539, allocations: 0.7758 MB / 0.7639 GB, free: 75.03 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01366/1.552, allocations: 7.839 MB / 0.7715 GB, free: 71.82 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002844/1.555, allocations: 3.411 MB / 0.7749 GB, free: 70.54 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.00282/1.558, allocations: 0.7485 MB / 0.7756 GB, free: 70.45 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007204/1.559, allocations: 220.9 kB / 0.7758 GB, free: 70.44 MB / 442.7 MB Notification: Performance of SimCode: time 8.71e-07/1.559, allocations: 0 / 0.7758 GB, free: 70.44 MB / 442.7 MB Notification: Performance of Templates: time 0.08007/1.639, allocations: 49.86 MB / 0.8245 GB, free: 43.23 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