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.001436/0.001436, allocations: 100.5 kB / 17.85 MB, free: 5.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001388/0.001388, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.332/1.332, allocations: 227.4 MB / 246.9 MB, free: 8.996 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001412/0.001412, allocations: 65.58 kB / 306.9 MB, free: 0.793 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09593/0.09736, allocations: 50.53 MB / 357.4 MB, free: 14.25 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.01062/0.108, allocations: 9.603 MB / 367 MB, free: 4.605 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006091/0.1141, allocations: 3.143 MB / 370.2 MB, free: 1.449 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001754/0.116, allocations: 51.75 kB / 370.2 MB, free: 1.398 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002176/0.1182, allocations: 0.5903 MB / 370.8 MB, free: 0.8047 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002845/0.121, allocations: 0.6955 MB / 371.5 MB, free: 108 kB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.169/0.2901, allocations: 344.2 kB / 371.9 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004302/0.2944, allocations: 2.864 MB / 374.7 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002543/0.297, allocations: 1.966 MB / 376.7 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002032/0.299, allocations: 1.041 MB / 377.7 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002397/0.3014, allocations: 1.445 MB / 379.2 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005714/0.302, allocations: 200.6 kB / 379.4 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001053/0.3031, allocations: 317.4 kB / 379.7 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009133/0.304, allocations: 0.7766 MB / 380.5 MB, free: 9.699 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002046/0.3061, allocations: 1.286 MB / 381.7 MB, free: 8.918 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004152/0.3102, allocations: 3.428 MB / 385.2 MB, free: 7.988 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.688e-06/0.3103, allocations: 4.984 kB / 385.2 MB, free: 7.984 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.3103, allocations: 0 / 385.2 MB, free: 7.984 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001413/0.3104, allocations: 0 / 385.2 MB, free: 7.984 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.006519/0.317, allocations: 2.909 MB / 388.1 MB, free: 6.199 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.744e-05/0.317, allocations: 9.688 kB / 388.1 MB, free: 6.199 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009282/0.3179, allocations: 301.2 kB / 388.4 MB, free: 6.051 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002676/0.3206, allocations: 1.49 MB / 389.9 MB, free: 5 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001555/0.3208, allocations: 161.9 kB / 390 MB, free: 4.926 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003928/0.3212, allocations: 216 kB / 390.2 MB, free: 4.852 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005069/0.3263, allocations: 2.796 MB / 393 MB, free: 3.18 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.409e-05/0.3264, allocations: 6.656 kB / 393 MB, free: 3.176 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000202/0.3266, allocations: 89 kB / 393.1 MB, free: 3.109 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001146/0.3267, allocations: 109 kB / 393.2 MB, free: 3.086 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00401/0.3307, allocations: 2.356 MB / 395.6 MB, free: 1.875 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01484/0.3456, allocations: 8.588 MB / 404.2 MB, free: 10.71 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002383/0.348, allocations: 1.707 MB / 405.9 MB, free: 8.891 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001658/0.3497, allocations: 0.9706 MB / 406.9 MB, free: 7.926 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003067/0.35, allocations: 207.3 kB / 407.1 MB, free: 7.688 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.016e-05/0.3501, allocations: 51.55 kB / 407.1 MB, free: 7.629 MB / 318.1 MB Notification: Performance of pre-optimization done (n=101): time 3.086e-06/0.3501, allocations: 0 / 407.1 MB, free: 7.629 MB / 318.1 MB Notification: Performance of matching and sorting (n=116): time 0.01377/0.3639, allocations: 6.232 MB / 413.3 MB, free: 1.238 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.525e-05/0.364, allocations: 60.41 kB / 413.4 MB, free: 1.164 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002712/0.3667, allocations: 1.449 MB / 414.9 MB, free: 15.7 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001997/0.3669, allocations: 41.7 kB / 414.9 MB, free: 15.66 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008551/0.3678, allocations: 1.044 MB / 415.9 MB, free: 14.6 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004383/0.3682, allocations: 408.1 kB / 416.3 MB, free: 14.2 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000494/0.3687, allocations: 255.4 kB / 416.6 MB, free: 13.95 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001415/0.3689, allocations: 361.9 kB / 416.9 MB, free: 13.59 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001188/0.3701, allocations: 0.691 MB / 417.6 MB, free: 12.9 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001428/0.3715, allocations: 1.063 MB / 418.7 MB, free: 11.68 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002706/0.3742, allocations: 1.869 MB / 420.6 MB, free: 9.652 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.574e-05/0.3743, allocations: 0 / 420.6 MB, free: 9.652 MB / 334.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004439/0.3787, allocations: 2.417 MB / 423 MB, free: 7.195 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.431e-05/0.3788, allocations: 12 kB / 423 MB, free: 7.184 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.488e-05/0.3788, allocations: 12 kB / 423 MB, free: 7.172 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001051/0.3799, allocations: 415.3 kB / 423.4 MB, free: 6.754 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001248/0.3812, allocations: 343.3 kB / 423.7 MB, free: 6.418 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006626/0.3878, allocations: 6.454 MB / 430.2 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001725/0.3896, allocations: 109.5 kB / 430.3 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002605/0.3898, allocations: 56.09 kB / 430.4 MB, free: 15.41 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.001586/0.3914, allocations: 0.6963 MB / 431.1 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004941/0.3919, allocations: 154.1 kB / 431.2 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003904/0.3959, allocations: 2.13 MB / 433.3 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.298e-05/0.3959, allocations: 16 kB / 433.4 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.636e-05/0.3959, allocations: 8 kB / 433.4 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.255e-05/0.3959, allocations: 7.922 kB / 433.4 MB, free: 12.35 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009182/0.4051, allocations: 4.592 MB / 438 MB, free: 7.652 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.078e-05/0.4052, allocations: 416 / 438 MB, free: 7.652 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009486/0.4061, allocations: 215.7 kB / 438.2 MB, free: 7.441 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001246/0.4074, allocations: 450.9 kB / 438.6 MB, free: 6.988 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001528/0.4076, allocations: 35.98 kB / 438.6 MB, free: 6.953 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007573/0.4152, allocations: 7.913 MB / 446.6 MB, free: 14.51 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.25e-06/0.4152, allocations: 7.984 kB / 446.6 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005242/0.4205, allocations: 3.11 MB / 449.7 MB, free: 11.31 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001031/0.4215, allocations: 379 kB / 450.1 MB, free: 10.92 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005634/0.4221, allocations: 31.94 kB / 450.1 MB, free: 10.89 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001235/0.4234, allocations: 83.89 kB / 450.2 MB, free: 10.8 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002943/0.4237, allocations: 88.88 kB / 450.3 MB, free: 10.72 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001036/0.4238, allocations: 39.88 kB / 450.3 MB, free: 10.68 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002078/0.4259, allocations: 0.9888 MB / 451.3 MB, free: 9.691 MB / 366.1 MB Notification: Performance of sort global known variables: time 2e-07/0.4259, allocations: 0 / 451.3 MB, free: 9.691 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002258/0.4281, allocations: 468.1 kB / 451.7 MB, free: 9.234 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.0004923/0.4286, allocations: 187 kB / 451.9 MB, free: 9.039 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003953/0.4326, allocations: 2.21 MB / 454.1 MB, free: 6.77 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.495e-06/0.4326, allocations: 8.062 kB / 454.1 MB, free: 6.762 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002371/0.435, allocations: 1.45 MB / 455.6 MB, free: 5.262 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00289/0.4379, allocations: 395.2 kB / 456 MB, free: 4.883 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00952/0.4475, allocations: 5.47 MB / 461.4 MB, free: 15.35 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001985/0.4495, allocations: 1.788 MB / 463.2 MB, free: 13.53 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00065/0.4502, allocations: 123.4 kB / 463.3 MB, free: 13.41 MB / 382.1 MB Notification: Performance of SimCode: time 9.32e-07/0.4502, allocations: 0 / 463.3 MB, free: 13.41 MB / 382.1 MB Notification: Performance of Templates: time 0.07576/0.526, allocations: 69.07 MB / 0.5199 GB, free: 8.383 MB / 446.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","/var/lib/jenkins1/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