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.00107/0.001071, allocations: 110.6 kB / 17.33 MB, free: 6.195 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001078/0.001078, allocations: 209.8 kB / 18.27 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.35/1.35, allocations: 227.4 MB / 246.4 MB, free: 10.82 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001208/0.001208, allocations: 58.69 kB / 306.5 MB, free: 0.9648 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09046/0.09168, allocations: 50.53 MB / 357 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter): time 0.1725/0.2642, allocations: 20.63 MB / 377.6 MB, free: 9.891 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009507/0.2738, allocations: 6.073 MB / 383.7 MB, free: 7.734 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00245/0.2763, allocations: 131.7 kB / 383.8 MB, free: 7.699 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002954/0.2793, allocations: 1.186 MB / 385 MB, free: 7.102 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004584/0.2839, allocations: 1.705 MB / 386.7 MB, free: 6.008 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002376/0.2862, allocations: 1.15 MB / 387.9 MB, free: 5.23 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00665/0.2929, allocations: 6.297 MB / 394.2 MB, free: 2.027 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005571/0.2985, allocations: 5.446 MB / 399.6 MB, free: 15.71 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004773/0.3033, allocations: 2.767 MB / 402.4 MB, free: 14.29 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003994/0.3073, allocations: 3.42 MB / 405.8 MB, free: 11.89 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00101/0.3083, allocations: 0.7773 MB / 406.6 MB, free: 11.12 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002077/0.3104, allocations: 1.097 MB / 407.7 MB, free: 10.02 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001604/0.312, allocations: 1.94 MB / 409.6 MB, free: 8.074 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003515/0.3156, allocations: 3.361 MB / 413 MB, free: 4.699 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009072/0.3246, allocations: 10.24 MB / 423.2 MB, free: 10.42 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.212e-06/0.3247, allocations: 4 kB / 423.2 MB, free: 10.42 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3247, allocations: 0 / 423.2 MB, free: 10.42 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001782/0.3249, allocations: 0 / 423.2 MB, free: 10.42 MB / 334.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.01473/0.3396, allocations: 6.613 MB / 429.8 MB, free: 3.723 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.279e-05/0.3397, allocations: 12.03 kB / 429.8 MB, free: 3.711 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004527/0.3442, allocations: 1.013 MB / 430.9 MB, free: 2.691 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005628/0.3498, allocations: 3.455 MB / 434.3 MB, free: 15.16 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003044/0.3502, allocations: 394.9 kB / 434.7 MB, free: 14.77 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007788/0.3509, allocations: 0.4998 MB / 435.2 MB, free: 14.27 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01146/0.3624, allocations: 6.771 MB / 442 MB, free: 7.434 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001134/0.3626, allocations: 19.84 kB / 442 MB, free: 7.414 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004665/0.363, allocations: 208 kB / 442.2 MB, free: 7.211 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002304/0.3633, allocations: 242.2 kB / 442.4 MB, free: 6.973 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01028/0.3736, allocations: 5.755 MB / 448.2 MB, free: 1.207 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03304/0.4066, allocations: 21.17 MB / 469.4 MB, free: 11.52 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008774/0.4154, allocations: 8.813 MB / 478.2 MB, free: 1.707 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003838/0.4193, allocations: 2.229 MB / 480.4 MB, free: 15.47 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.011/0.4304, allocations: 6.214 MB / 486.6 MB, free: 9.055 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.053e-05/0.4304, allocations: 56.56 kB / 486.7 MB, free: 8.992 MB / 398.1 MB Notification: Performance of pre-optimization done (n=205): time 4.749e-06/0.4305, allocations: 0 / 486.7 MB, free: 8.992 MB / 398.1 MB Notification: Performance of matching and sorting (n=222): time 0.02243/0.4529, allocations: 10.42 MB / 497.1 MB, free: 14.32 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.299e-05/0.453, allocations: 81.41 kB / 497.2 MB, free: 14.23 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006415/0.4594, allocations: 2.925 MB / 0.4884 GB, free: 11.3 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004876/0.46, allocations: 65.7 kB / 0.4884 GB, free: 11.23 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002092/0.4621, allocations: 2.357 MB / 0.4907 GB, free: 8.844 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001007/0.4631, allocations: 0.7741 MB / 0.4915 GB, free: 8.059 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001226/0.4643, allocations: 0.5138 MB / 0.492 GB, free: 7.535 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001191/0.4645, allocations: 305.1 kB / 0.4923 GB, free: 7.234 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002582/0.467, allocations: 1.271 MB / 0.4935 GB, free: 5.961 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003113/0.4702, allocations: 2.175 MB / 0.4956 GB, free: 3.387 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005388/0.4756, allocations: 3.664 MB / 0.4992 GB, free: 15.33 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.154e-05/0.4756, allocations: 8 kB / 0.4992 GB, free: 15.32 MB / 430.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.008432/0.4841, allocations: 4.466 MB / 0.5036 GB, free: 10.79 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.293e-05/0.4842, allocations: 16 kB / 0.5036 GB, free: 10.77 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.294e-05/0.4842, allocations: 28.53 kB / 0.5036 GB, free: 10.74 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001333/0.4856, allocations: 0.5484 MB / 0.5042 GB, free: 10.17 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002596/0.4882, allocations: 0.6785 MB / 0.5048 GB, free: 9.492 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009672/0.4979, allocations: 10.33 MB / 0.5149 GB, free: 14.46 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003124/0.501, allocations: 187.7 kB / 0.5151 GB, free: 14.28 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005678/0.5016, allocations: 128 kB / 0.5152 GB, free: 14.15 MB / 446.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.004776/0.5064, allocations: 1.523 MB / 0.5167 GB, free: 12.62 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001496/0.5079, allocations: 324 kB / 0.517 GB, free: 12.3 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0128/0.5207, allocations: 3.899 MB / 0.5208 GB, free: 8.301 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.332e-05/0.5208, allocations: 24 kB / 0.5209 GB, free: 8.277 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.516e-05/0.5209, allocations: 8 kB / 0.5209 GB, free: 8.27 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.086e-05/0.5209, allocations: 11.91 kB / 0.5209 GB, free: 8.258 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2674/0.7883, allocations: 8.523 MB / 0.5292 GB, free: 136.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.534e-05/0.7884, allocations: 7.109 kB / 0.5292 GB, free: 136.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003202/0.7916, allocations: 373.5 kB / 0.5296 GB, free: 136.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003101/0.7947, allocations: 0.7486 MB / 0.5303 GB, free: 136.9 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004077/0.7951, allocations: 60.97 kB / 0.5303 GB, free: 136.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02071/0.8158, allocations: 16.78 MB / 0.5467 GB, free: 124.2 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.516e-06/0.8159, allocations: 4.859 kB / 0.5467 GB, free: 124.2 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00972/0.8256, allocations: 5.571 MB / 0.5522 GB, free: 121.7 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001403/0.827, allocations: 0.6514 MB / 0.5528 GB, free: 121.5 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008128/0.8279, allocations: 52.31 kB / 0.5529 GB, free: 121.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001887/0.8298, allocations: 135.5 kB / 0.553 GB, free: 121.4 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004455/0.8302, allocations: 169.5 kB / 0.5532 GB, free: 121.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001674/0.8304, allocations: 63.59 kB / 0.5532 GB, free: 121.4 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003598/0.834, allocations: 1.985 MB / 0.5552 GB, free: 120.6 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.834, allocations: 0 / 0.5552 GB, free: 120.6 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003438/0.8375, allocations: 0.9458 MB / 0.5561 GB, free: 120.5 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.0005944/0.8381, allocations: 257.8 kB / 0.5563 GB, free: 120.4 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.009247/0.8473, allocations: 5.397 MB / 0.5616 GB, free: 118.5 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.851e-06/0.8474, allocations: 0 / 0.5616 GB, free: 118.5 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003422/0.8508, allocations: 2.67 MB / 0.5642 GB, free: 116.9 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004722/0.8555, allocations: 0.8645 MB / 0.565 GB, free: 116.6 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.015/0.8705, allocations: 11.73 MB / 0.5765 GB, free: 109.8 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003141/0.8737, allocations: 3.309 MB / 0.5797 GB, free: 107.6 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00266/0.8764, allocations: 0.7541 MB / 0.5805 GB, free: 107 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007472/0.8771, allocations: 222.5 kB / 0.5807 GB, free: 106.8 MB / 446.1 MB Notification: Performance of SimCode: time 8.61e-07/0.8772, allocations: 0 / 0.5807 GB, free: 106.8 MB / 446.1 MB Notification: Performance of Templates: time 0.06661/0.9438, allocations: 47.66 MB / 0.6272 GB, free: 60.26 MB / 446.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/jenkins/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/jenkins/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