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.001229/0.001229, allocations: 96.98 kB / 17.01 MB, free: 6.121 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001691/0.001691, allocations: 194.2 kB / 17.9 MB, free: 5.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.44/1.44, allocations: 227.7 MB / 246.4 MB, free: 9.824 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000238/0.0002381, allocations: 8 kB / 307.1 MB, free: 0.9688 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1087, allocations: 51.53 MB / 358.6 MB, free: 13.45 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.009457/0.1182, allocations: 8.533 MB / 367.2 MB, free: 4.879 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005663/0.1239, allocations: 2.973 MB / 370.1 MB, free: 1.895 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008358/0.1247, allocations: 51.75 kB / 370.2 MB, free: 1.844 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001211/0.126, allocations: 0.5358 MB / 370.7 MB, free: 1.305 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001637/0.1276, allocations: 0.6525 MB / 371.4 MB, free: 0.6484 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006338/0.1283, allocations: 255.5 kB / 371.6 MB, free: 408 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1937/0.322, allocations: 2.584 MB / 374.2 MB, free: 9.977 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002312/0.3243, allocations: 1.528 MB / 375.8 MB, free: 9.711 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001893/0.3262, allocations: 0.8906 MB / 376.6 MB, free: 9.699 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001608/0.3279, allocations: 1.217 MB / 377.9 MB, free: 9.465 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002446/0.3281, allocations: 132.5 kB / 378 MB, free: 9.465 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006029/0.3287, allocations: 212 kB / 378.2 MB, free: 9.465 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007146/0.3295, allocations: 0.6702 MB / 378.9 MB, free: 9.371 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005485/0.33, allocations: 498.5 kB / 379.4 MB, free: 9.258 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003388/0.3334, allocations: 3.337 MB / 382.7 MB, free: 9.074 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.3334, allocations: 0 / 382.7 MB, free: 9.074 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.3334, allocations: 2.156 kB / 382.7 MB, free: 9.074 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.36e-05/0.3335, allocations: 1.406 kB / 382.7 MB, free: 9.074 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.004325/0.3378, allocations: 2.5 MB / 385.2 MB, free: 7.707 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.676e-05/0.3379, allocations: 12.44 kB / 385.2 MB, free: 7.703 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007178/0.3386, allocations: 300.4 kB / 385.5 MB, free: 7.555 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002055/0.3407, allocations: 1.448 MB / 386.9 MB, free: 6.895 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001547/0.3408, allocations: 169 kB / 387.1 MB, free: 6.883 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002974/0.3411, allocations: 209.6 kB / 387.3 MB, free: 6.879 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004467/0.3456, allocations: 2.794 MB / 390.1 MB, free: 6.137 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.932e-05/0.3457, allocations: 5.75 kB / 390.1 MB, free: 6.137 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001869/0.3459, allocations: 84.73 kB / 390.2 MB, free: 6.137 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001071/0.346, allocations: 111.2 kB / 390.3 MB, free: 6.117 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003608/0.3496, allocations: 2.361 MB / 392.7 MB, free: 5.219 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01059/0.3602, allocations: 8.629 MB / 401.3 MB, free: 15.09 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002187/0.3624, allocations: 1.725 MB / 403 MB, free: 13.28 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001561/0.364, allocations: 0.9893 MB / 404 MB, free: 12.29 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002704/0.3643, allocations: 202 kB / 404.2 MB, free: 12.06 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.725e-05/0.3643, allocations: 47.55 kB / 404.3 MB, free: 12 MB / 318.1 MB Notification: Performance of pre-optimization done (n=101): time 3.015e-06/0.3643, allocations: 0 / 404.3 MB, free: 12 MB / 318.1 MB Notification: Performance of matching and sorting (n=116): time 0.01201/0.3763, allocations: 6.334 MB / 410.6 MB, free: 5.516 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.915e-05/0.3764, allocations: 72.34 kB / 410.7 MB, free: 5.43 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001936/0.3784, allocations: 1.434 MB / 412.1 MB, free: 3.984 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.546e-05/0.3784, allocations: 45.7 kB / 412.1 MB, free: 3.934 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006891/0.3791, allocations: 1.041 MB / 413.2 MB, free: 2.883 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002914/0.3794, allocations: 407.6 kB / 413.6 MB, free: 2.488 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.349e-05/0.3795, allocations: 28 kB / 413.6 MB, free: 2.461 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001409/0.3797, allocations: 361.9 kB / 414 MB, free: 2.102 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001045/0.3807, allocations: 0.698 MB / 414.7 MB, free: 1.406 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001255/0.382, allocations: 1.08 MB / 415.7 MB, free: 172 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001297/0.3833, allocations: 0.8559 MB / 416.6 MB, free: 15.32 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.931e-06/0.3833, allocations: 4 kB / 416.6 MB, free: 15.31 MB / 334.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.003671/0.387, allocations: 2.429 MB / 419 MB, free: 12.84 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.269e-05/0.387, allocations: 8 kB / 419 MB, free: 12.83 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.472e-05/0.387, allocations: 12 kB / 419 MB, free: 12.82 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008806/0.3879, allocations: 424.4 kB / 419.5 MB, free: 12.39 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001151/0.3891, allocations: 331.5 kB / 419.8 MB, free: 12.07 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005967/0.3951, allocations: 6.458 MB / 426.2 MB, free: 5.211 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001196/0.3963, allocations: 107.8 kB / 426.3 MB, free: 5.105 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001003/0.3964, allocations: 56 kB / 426.4 MB, free: 5.051 MB / 334.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 (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,100.0%) 11,(1,100.0%) 6,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001305/0.3977, allocations: 0.6963 MB / 427.1 MB, free: 4.344 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002384/0.3979, allocations: 154.1 kB / 427.2 MB, free: 4.191 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003459/0.4014, allocations: 2.152 MB / 429.4 MB, free: 2.004 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.218e-05/0.4014, allocations: 12 kB / 429.4 MB, free: 1.992 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.063e-06/0.4014, allocations: 4 kB / 429.4 MB, free: 1.988 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.162e-05/0.4015, allocations: 3.984 kB / 429.4 MB, free: 1.984 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006965/0.4084, allocations: 4.621 MB / 434 MB, free: 13.26 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.506e-06/0.4085, allocations: 4 kB / 434 MB, free: 13.26 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008703/0.4093, allocations: 215.7 kB / 434.3 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001017/0.4104, allocations: 452.6 kB / 434.7 MB, free: 12.6 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.977e-05/0.4104, allocations: 31.98 kB / 434.7 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007036/0.4175, allocations: 7.907 MB / 442.6 MB, free: 4.129 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.4175, allocations: 0 / 442.6 MB, free: 4.129 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004397/0.4219, allocations: 3.138 MB / 445.8 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006503/0.4226, allocations: 379 kB / 446.1 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002046/0.4228, allocations: 31.98 kB / 446.2 MB, free: 496 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007932/0.4236, allocations: 95.91 kB / 446.3 MB, free: 400 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001736/0.4238, allocations: 96.83 kB / 446.4 MB, free: 304 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.297e-05/0.4239, allocations: 39.92 kB / 446.4 MB, free: 264 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001354/0.4252, allocations: 0.9752 MB / 447.4 MB, free: 15.29 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4252, allocations: 0 / 447.4 MB, free: 15.29 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00154/0.4268, allocations: 467.9 kB / 447.8 MB, free: 14.83 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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(3,100.0%) 11,(1,100.0%) 6,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002794/0.4271, allocations: 158.5 kB / 448 MB, free: 14.67 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003149/0.4302, allocations: 2.233 MB / 450.2 MB, free: 12.38 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.4302, allocations: 2.188 kB / 450.2 MB, free: 12.38 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00204/0.4323, allocations: 1.452 MB / 451.7 MB, free: 10.88 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001648/0.4339, allocations: 401.8 kB / 452.1 MB, free: 10.49 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006525/0.4405, allocations: 5.297 MB / 457.4 MB, free: 5.125 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001399/0.4419, allocations: 1.803 MB / 459.2 MB, free: 3.289 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0009655/0.4429, allocations: 365.6 kB / 459.5 MB, free: 2.926 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003032/0.4432, allocations: 117.3 kB / 459.6 MB, free: 2.812 MB / 366.1 MB Notification: Performance of SimCode: time 2.9e-07/0.4432, allocations: 0 / 459.6 MB, free: 2.812 MB / 366.1 MB Notification: Performance of Templates: time 0.03395/0.4771, allocations: 22.49 MB / 482.1 MB, free: 12.56 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