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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.0008309/0.0008309, allocations: 92 kB / 18 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008733/0.0008733, allocations: 202.7 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.366/1.366, allocations: 227.7 MB / 247.4 MB, free: 9.328 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002465/0.0002466, allocations: 7.984 kB / 308.4 MB, free: 0.5156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1038, allocations: 51.52 MB / 359.9 MB, free: 12.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter): time 0.2297/0.3336, allocations: 19.79 MB / 379.7 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.014/0.3476, allocations: 6.016 MB / 385.7 MB, free: 8.34 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005217/0.3529, allocations: 124 kB / 385.9 MB, free: 8.309 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004667/0.3576, allocations: 1.164 MB / 387 MB, free: 7.719 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008401/0.3661, allocations: 1.717 MB / 388.7 MB, free: 6.617 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003928/0.37, allocations: 1.156 MB / 389.9 MB, free: 5.84 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01051/0.3805, allocations: 6.746 MB / 396.6 MB, free: 2.773 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006228/0.3868, allocations: 4.516 MB / 401.2 MB, free: 0.5859 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003954/0.3908, allocations: 2.037 MB / 403.2 MB, free: 15.48 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005147/0.396, allocations: 2.777 MB / 406 MB, free: 13.73 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001243/0.3972, allocations: 320.7 kB / 406.3 MB, free: 13.62 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002939/0.4002, allocations: 0.64 MB / 406.9 MB, free: 12.99 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001669/0.4019, allocations: 1.389 MB / 408.3 MB, free: 11.59 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005572/0.4075, allocations: 2.765 MB / 411.1 MB, free: 8.809 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009595/0.4171, allocations: 8.422 MB / 419.5 MB, free: 372 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.4171, allocations: 0 / 419.5 MB, free: 372 kB / 318.1 MB Notification: Performance of FrontEnd: time 2.505e-06/0.4171, allocations: 0 / 419.5 MB, free: 372 kB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003264/0.4175, allocations: 0 / 419.5 MB, free: 372 kB / 318.1 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.01465/0.4321, allocations: 5.573 MB / 425.1 MB, free: 10.71 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.623e-05/0.4322, allocations: 12.03 kB / 425.1 MB, free: 10.7 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005788/0.438, allocations: 1.017 MB / 426.1 MB, free: 9.672 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007104/0.4451, allocations: 3.455 MB / 429.6 MB, free: 6.141 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004294/0.4456, allocations: 399 kB / 429.9 MB, free: 5.75 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001238/0.4468, allocations: 0.5076 MB / 430.5 MB, free: 5.242 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01335/0.4602, allocations: 6.794 MB / 437.2 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001194/0.4604, allocations: 7.938 kB / 437.3 MB, free: 14.37 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005029/0.4609, allocations: 207.9 kB / 437.5 MB, free: 14.17 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00023/0.4611, allocations: 246.2 kB / 437.7 MB, free: 13.93 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01114/0.4723, allocations: 5.787 MB / 443.5 MB, free: 8.129 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03925/0.5116, allocations: 21.29 MB / 464.8 MB, free: 2.328 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01007/0.5217, allocations: 8.833 MB / 473.6 MB, free: 8.492 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004192/0.5259, allocations: 2.233 MB / 475.8 MB, free: 6.25 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01447/0.5404, allocations: 6.241 MB / 482.1 MB, free: 15.81 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.417e-05/0.5405, allocations: 60.56 kB / 482.1 MB, free: 15.74 MB / 398.1 MB Notification: Performance of pre-optimization done (n=205): time 5.51e-06/0.5405, allocations: 0 / 482.1 MB, free: 15.74 MB / 398.1 MB Notification: Performance of matching and sorting (n=222): time 0.02344/0.564, allocations: 10.55 MB / 492.7 MB, free: 4.93 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.706e-05/0.5641, allocations: 73.41 kB / 492.8 MB, free: 4.844 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005866/0.57, allocations: 2.925 MB / 495.7 MB, free: 1.91 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003632/0.5703, allocations: 61.7 kB / 495.8 MB, free: 1.844 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001859/0.5722, allocations: 2.369 MB / 498.1 MB, free: 15.45 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009737/0.5732, allocations: 0.7702 MB / 498.9 MB, free: 14.67 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000579/0.5738, allocations: 231.8 kB / 499.1 MB, free: 14.43 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001376/0.574, allocations: 313 kB / 499.4 MB, free: 14.12 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002705/0.5767, allocations: 1.282 MB / 0.489 GB, free: 12.84 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003161/0.5798, allocations: 2.195 MB / 0.4911 GB, free: 10.25 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005999/0.5859, allocations: 3.695 MB / 0.4947 GB, free: 6.156 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.571e-05/0.5859, allocations: 8 kB / 0.4947 GB, free: 6.148 MB / 414.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.008965/0.5949, allocations: 4.501 MB / 0.4991 GB, free: 1.578 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.371e-05/0.595, allocations: 16 kB / 0.4991 GB, free: 1.562 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.301e-05/0.595, allocations: 28 kB / 0.4992 GB, free: 1.535 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001282/0.5963, allocations: 0.5444 MB / 0.4997 GB, free: 0.9727 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002646/0.599, allocations: 0.6825 MB / 0.5004 GB, free: 296 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009025/0.608, allocations: 9.5 MB / 0.5096 GB, free: 6.117 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003128/0.6112, allocations: 183.7 kB / 0.5098 GB, free: 5.938 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004788/0.6117, allocations: 128 kB / 0.5099 GB, free: 5.812 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 129 * 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): 338 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(3,11,100.0%), (1,6,100.0%), (1,1,100.0%), (1,1,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003364/0.6151, allocations: 1.524 MB / 0.5114 GB, free: 4.277 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009084/0.616, allocations: 316.2 kB / 0.5117 GB, free: 3.965 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007511/0.6235, allocations: 3.938 MB / 0.5156 GB, free: 15.93 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-05/0.6236, allocations: 23.94 kB / 0.5156 GB, free: 15.91 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.718e-05/0.6236, allocations: 8 kB / 0.5156 GB, free: 15.9 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.619e-05/0.6236, allocations: 11.95 kB / 0.5156 GB, free: 15.89 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01665/0.6403, allocations: 8.549 MB / 0.524 GB, free: 7.148 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-05/0.6403, allocations: 4 kB / 0.524 GB, free: 7.145 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001771/0.6421, allocations: 387.9 kB / 0.5243 GB, free: 6.766 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002072/0.6442, allocations: 0.7477 MB / 0.5251 GB, free: 5.996 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002463/0.6445, allocations: 59.97 kB / 0.5251 GB, free: 5.938 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2072/0.8517, allocations: 15.36 MB / 0.5401 GB, free: 130.3 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.364e-06/0.8517, allocations: 11.59 kB / 0.5401 GB, free: 130.3 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009687/0.8614, allocations: 5.618 MB / 0.5456 GB, free: 127.9 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001624/0.8631, allocations: 0.6585 MB / 0.5463 GB, free: 127.6 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004736/0.8636, allocations: 54.75 kB / 0.5463 GB, free: 127.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001535/0.8651, allocations: 142.5 kB / 0.5465 GB, free: 127.5 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004805/0.8656, allocations: 172.2 kB / 0.5466 GB, free: 127.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001468/0.8657, allocations: 66.98 kB / 0.5467 GB, free: 127.5 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003437/0.8692, allocations: 1.976 MB / 0.5486 GB, free: 126.8 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.6e-07/0.8692, allocations: 1.125 kB / 0.5486 GB, free: 126.8 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004253/0.8735, allocations: 0.9403 MB / 0.5495 GB, free: 126.7 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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 (182): * Single equations (assignments): 174 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(1,5,100.0%), (3,11,100.0%), (1,6,100.0%), (1,1,100.0%), (2,1,100.0%), (1,1,100.0%), (1,8,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007816/0.8743, allocations: 263.8 kB / 0.5498 GB, free: 126.5 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006739/0.881, allocations: 3.998 MB / 0.5537 GB, free: 124.6 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.446e-06/0.8811, allocations: 0.9375 kB / 0.5537 GB, free: 124.6 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003853/0.8849, allocations: 2.687 MB / 0.5563 GB, free: 123.1 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005454/0.8904, allocations: 0.8155 MB / 0.5571 GB, free: 122.9 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01498/0.9054, allocations: 11.96 MB / 0.5688 GB, free: 115.9 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002454/0.9079, allocations: 3.229 MB / 0.5719 GB, free: 114.7 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009711/0.9089, allocations: 243.2 kB / 0.5722 GB, free: 114.7 MB / 446.1 MB Notification: Performance of SimCode: time 7.72e-07/0.9089, allocations: 0 / 0.5722 GB, free: 114.7 MB / 446.1 MB Notification: Performance of Templates: time 0.3962/1.305, allocations: 250.7 MB / 0.817 GB, free: 46.79 MB / 462.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches