Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.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.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia.phi|loadInertia.w|smr.is.1.|smr.is.2.|smr.idq_rr.1.|smr.idq_rr.2.|smr.idq_sr.1.|smr.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia.phi|loadInertia.w|smr.is.1.|smr.is.2.|smr.idq_rr.1.|smr.idq_rr.2.|smr.idq_sr.1.|smr.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001684/0.001684, allocations: 108.9 kB / 17.33 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002013/0.002013, allocations: 209.8 kB / 18.27 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.468/1.468, allocations: 227.4 MB / 246.4 MB, free: 10.76 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001425/0.001425, allocations: 63.92 kB / 306.5 MB, free: 0.9336 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1226/0.1241, allocations: 50.52 MB / 357 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.01424/0.1384, allocations: 9.6 MB / 366.6 MB, free: 4.758 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008031/0.1464, allocations: 3.116 MB / 369.7 MB, free: 1.629 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002537/0.149, allocations: 55.75 kB / 369.8 MB, free: 1.574 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002934/0.152, allocations: 0.5864 MB / 370.3 MB, free: 0.9844 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003956/0.156, allocations: 0.6993 MB / 371 MB, free: 288 kB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2026/0.3587, allocations: 344.8 kB / 371.4 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003819/0.3625, allocations: 2.545 MB / 373.9 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00305/0.3656, allocations: 2.331 MB / 376.2 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002338/0.368, allocations: 1.198 MB / 377.4 MB, free: 9.887 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002699/0.3707, allocations: 1.522 MB / 379 MB, free: 9.648 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007305/0.3715, allocations: 319.9 kB / 379.3 MB, free: 9.648 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001285/0.3728, allocations: 430.5 kB / 379.7 MB, free: 9.645 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000886/0.3737, allocations: 0.8992 MB / 380.6 MB, free: 9.301 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002298/0.376, allocations: 1.42 MB / 382 MB, free: 8.391 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005784/0.3818, allocations: 4.11 MB / 386.1 MB, free: 7.023 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.734e-06/0.3818, allocations: 1.438 kB / 386.1 MB, free: 7.023 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.3818, allocations: 7.938 kB / 386.1 MB, free: 7.016 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001247/0.382, allocations: 0 / 386.1 MB, free: 7.016 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 553 * Number of variables: 553 Notification: Performance of Generate backend data structure: time 0.008232/0.3902, allocations: 2.908 MB / 389 MB, free: 5.371 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.952e-05/0.3903, allocations: 9.875 kB / 389.1 MB, free: 5.371 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001474/0.3918, allocations: 296.4 kB / 389.3 MB, free: 5.227 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002852/0.3946, allocations: 1.496 MB / 390.8 MB, free: 4.18 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001476/0.3948, allocations: 157 kB / 391 MB, free: 4.109 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003555/0.3952, allocations: 217.1 kB / 391.2 MB, free: 4.035 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005276/0.4004, allocations: 2.8 MB / 394 MB, free: 2.359 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.778e-05/0.4005, allocations: 7.062 kB / 394 MB, free: 2.355 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002089/0.4008, allocations: 89 kB / 394.1 MB, free: 2.289 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001426/0.4009, allocations: 104 kB / 394.2 MB, free: 2.27 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004266/0.4052, allocations: 2.348 MB / 396.6 MB, free: 1.066 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01529/0.4205, allocations: 8.603 MB / 405.2 MB, free: 9.258 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002556/0.4231, allocations: 1.702 MB / 406.9 MB, free: 7.441 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001742/0.4248, allocations: 0.9709 MB / 407.8 MB, free: 6.477 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000321/0.4252, allocations: 210.7 kB / 408 MB, free: 6.234 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.271e-05/0.4252, allocations: 43.56 kB / 408.1 MB, free: 6.184 MB / 318.1 MB Notification: Performance of pre-optimization done (n=101): time 3.296e-06/0.4252, allocations: 0 / 408.1 MB, free: 6.184 MB / 318.1 MB Notification: Performance of matching and sorting (n=116): time 0.01386/0.4391, allocations: 6.231 MB / 414.3 MB, free: 15.79 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.247e-05/0.4392, allocations: 64.41 kB / 414.4 MB, free: 15.71 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002187/0.4414, allocations: 1.449 MB / 415.8 MB, free: 14.25 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001469/0.4415, allocations: 41.7 kB / 415.9 MB, free: 14.2 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007298/0.4423, allocations: 1.045 MB / 416.9 MB, free: 13.15 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003598/0.4426, allocations: 402 kB / 417.3 MB, free: 12.76 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004185/0.4431, allocations: 255.4 kB / 417.5 MB, free: 12.5 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001528/0.4432, allocations: 365.9 kB / 417.9 MB, free: 12.14 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001161/0.4444, allocations: 0.691 MB / 418.6 MB, free: 11.45 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001403/0.4458, allocations: 1.064 MB / 419.7 MB, free: 10.23 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002662/0.4485, allocations: 1.87 MB / 421.5 MB, free: 8.199 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.041e-06/0.4485, allocations: 0 / 421.5 MB, free: 8.199 MB / 334.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004249/0.4528, allocations: 2.42 MB / 423.9 MB, free: 5.742 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.091e-05/0.4528, allocations: 15.94 kB / 424 MB, free: 5.727 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.086e-05/0.4528, allocations: 12 kB / 424 MB, free: 5.715 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001036/0.4539, allocations: 407.4 kB / 424.4 MB, free: 5.305 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001255/0.4552, allocations: 339.4 kB / 424.7 MB, free: 4.973 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007072/0.4622, allocations: 7.043 MB / 431.7 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001577/0.4638, allocations: 99.8 kB / 431.8 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001433/0.464, allocations: 56.09 kB / 431.9 MB, free: 13.36 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (157): * Single equations (assignments): 153 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(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): 3 systems {(3,11,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001228/0.4652, allocations: 0.7002 MB / 432.6 MB, free: 12.65 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003581/0.4656, allocations: 162 kB / 432.8 MB, free: 12.49 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003805/0.4694, allocations: 2.13 MB / 434.9 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.138e-05/0.4695, allocations: 12 kB / 434.9 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.137e-05/0.4695, allocations: 7.938 kB / 434.9 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.215e-05/0.4695, allocations: 3.984 kB / 434.9 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008152/0.4777, allocations: 4.586 MB / 439.5 MB, free: 5.609 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.063e-05/0.4777, allocations: 4 kB / 439.5 MB, free: 5.605 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009305/0.4786, allocations: 211.7 kB / 439.7 MB, free: 5.398 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001148/0.4798, allocations: 450.7 kB / 440.1 MB, free: 4.949 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.302e-05/0.4799, allocations: 31.98 kB / 440.2 MB, free: 4.918 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008189/0.4881, allocations: 8.639 MB / 448.8 MB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.94e-06/0.4881, allocations: 4 kB / 448.8 MB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005098/0.4932, allocations: 3.101 MB / 451.9 MB, free: 8.535 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009196/0.4942, allocations: 375 kB / 452.3 MB, free: 8.148 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002432/0.4944, allocations: 31.98 kB / 452.3 MB, free: 8.117 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008828/0.4953, allocations: 83.91 kB / 452.4 MB, free: 8.035 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002494/0.4956, allocations: 96.75 kB / 452.5 MB, free: 7.941 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.752e-05/0.4957, allocations: 32 kB / 452.5 MB, free: 7.91 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001428/0.4971, allocations: 0.9927 MB / 453.5 MB, free: 6.918 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4971, allocations: 4 kB / 453.5 MB, free: 6.914 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001693/0.4988, allocations: 460.1 kB / 454 MB, free: 6.465 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 7 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],vfController.x,loadInertia.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 (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,11,100.0%), (1,6,100.0%), (1,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004136/0.4992, allocations: 198 kB / 454.2 MB, free: 6.262 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004825/0.5041, allocations: 2.7 MB / 456.9 MB, free: 3.5 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.105e-06/0.5041, allocations: 4 kB / 456.9 MB, free: 3.496 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002301/0.5064, allocations: 1.444 MB / 458.3 MB, free: 2.004 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002228/0.5086, allocations: 430.6 kB / 458.7 MB, free: 1.602 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008095/0.5167, allocations: 5.415 MB / 464.2 MB, free: 12.12 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001497/0.5183, allocations: 1.796 MB / 465.9 MB, free: 10.29 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001266/0.5196, allocations: 369.6 kB / 466.3 MB, free: 9.93 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003425/0.5199, allocations: 115.4 kB / 466.4 MB, free: 9.816 MB / 382.1 MB Notification: Performance of SimCode: time 6.31e-07/0.5199, allocations: 4 kB / 466.4 MB, free: 9.812 MB / 382.1 MB Notification: Performance of Templates: time 0.04429/0.5642, allocations: 24.38 MB / 490.8 MB, free: 1.695 MB / 398.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches