Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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.",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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.",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001268/0.001268, allocations: 109.1 kB / 17.06 MB, free: 6 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00114/0.00114, allocations: 200 kB / 18.01 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.347/1.347, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001025/0.001025, allocations: 51.92 kB / 351.3 MB, free: 3.219 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2408/0.2418, allocations: 49.42 MB / 400.7 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL): time 0.01114/0.253, allocations: 10.19 MB / 410.9 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006294/0.2593, allocations: 3.213 MB / 414.1 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001917/0.2613, allocations: 55.75 kB / 414.2 MB, free: 11.35 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002313/0.2637, allocations: 0.7374 MB / 414.9 MB, free: 10.61 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003328/0.267, allocations: 0.8738 MB / 415.8 MB, free: 9.734 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001609/0.2687, allocations: 407.4 kB / 416.2 MB, free: 9.336 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004577/0.2733, allocations: 2.974 MB / 419.2 MB, free: 6.352 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003272/0.2766, allocations: 2.48 MB / 421.7 MB, free: 3.805 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002103/0.2787, allocations: 1.359 MB / 423 MB, free: 2.441 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002799/0.2815, allocations: 1.697 MB / 424.7 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005598/0.2821, allocations: 356 kB / 425.1 MB, free: 400 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008803/0.283, allocations: 451.8 kB / 425.5 MB, free: 15.95 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009468/0.284, allocations: 1.013 MB / 426.5 MB, free: 14.93 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001909/0.2859, allocations: 1.602 MB / 428.1 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00449/0.2904, allocations: 4.673 MB / 432.8 MB, free: 8.637 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.476e-06/0.2904, allocations: 3.984 kB / 432.8 MB, free: 8.633 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.2904, allocations: 0 / 432.8 MB, free: 8.633 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001196/0.2906, allocations: 0 / 432.8 MB, free: 8.633 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 606 * Number of variables: 606 Notification: Performance of Generate backend data structure: time 0.006537/0.2971, allocations: 3.267 MB / 436.1 MB, free: 5.301 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.982e-05/0.2972, allocations: 8.031 kB / 436.1 MB, free: 5.293 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007238/0.2979, allocations: 329.2 kB / 436.4 MB, free: 4.969 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002817/0.3007, allocations: 1.76 MB / 438.1 MB, free: 3.152 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001892/0.3009, allocations: 180.8 kB / 438.3 MB, free: 2.973 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003991/0.3013, allocations: 231.9 kB / 438.5 MB, free: 2.746 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004756/0.3061, allocations: 3.133 MB / 441.7 MB, free: 15.52 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.89e-05/0.3062, allocations: 7.891 kB / 441.7 MB, free: 15.52 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001988/0.3064, allocations: 104 kB / 441.8 MB, free: 15.41 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001018/0.3065, allocations: 108.5 kB / 441.9 MB, free: 15.3 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004289/0.3108, allocations: 2.696 MB / 444.6 MB, free: 12.59 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01458/0.3254, allocations: 9.626 MB / 454.2 MB, free: 2.676 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002779/0.3282, allocations: 2.169 MB / 456.4 MB, free: 348 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001916/0.3302, allocations: 1.117 MB / 457.5 MB, free: 15.23 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003008/0.3305, allocations: 199.2 kB / 457.7 MB, free: 15 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.95e-05/0.3305, allocations: 47.55 kB / 457.7 MB, free: 14.94 MB / 382.1 MB Notification: Performance of pre-optimization done (n=116): time 4.188e-06/0.3305, allocations: 0 / 457.7 MB, free: 14.94 MB / 382.1 MB Notification: Performance of matching and sorting (n=131): time 0.01399/0.3445, allocations: 6.839 MB / 464.6 MB, free: 7.934 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.067e-05/0.3446, allocations: 68.72 kB / 464.7 MB, free: 7.855 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002457/0.3471, allocations: 1.739 MB / 466.4 MB, free: 6.113 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001099/0.3472, allocations: 45.7 kB / 466.4 MB, free: 6.062 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000764/0.348, allocations: 1.155 MB / 467.6 MB, free: 4.891 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000348/0.3483, allocations: 457.3 kB / 468 MB, free: 4.438 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004304/0.3488, allocations: 283.4 kB / 468.3 MB, free: 4.152 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.224e-05/0.3489, allocations: 309 kB / 468.6 MB, free: 3.848 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001215/0.3501, allocations: 0.7925 MB / 469.4 MB, free: 3.055 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00146/0.3516, allocations: 1.201 MB / 470.6 MB, free: 1.68 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002733/0.3543, allocations: 2.098 MB / 472.7 MB, free: 15.41 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.544e-06/0.3543, allocations: 4 kB / 472.7 MB, free: 15.41 MB / 398.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.004274/0.3586, allocations: 2.678 MB / 475.4 MB, free: 12.69 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.301e-05/0.3586, allocations: 12 kB / 475.4 MB, free: 12.68 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.921e-05/0.3587, allocations: 12 kB / 475.4 MB, free: 12.67 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009573/0.3596, allocations: 411.5 kB / 475.8 MB, free: 12.25 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001332/0.361, allocations: 367.4 kB / 476.2 MB, free: 11.89 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006584/0.3676, allocations: 7.075 MB / 483.2 MB, free: 4.406 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001349/0.3689, allocations: 107.8 kB / 483.4 MB, free: 4.301 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001421/0.3691, allocations: 68 kB / 483.4 MB, free: 4.234 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 3 (idealCloser.control[3],idealCloser.control[2],idealCloser.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (174): * Single equations (assignments): 170 * 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.001231/0.3704, allocations: 0.7977 MB / 484.2 MB, free: 3.426 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003199/0.3707, allocations: 185.8 kB / 484.4 MB, free: 3.242 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003981/0.3747, allocations: 2.372 MB / 486.8 MB, free: 0.8281 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.194e-05/0.3747, allocations: 15.94 kB / 486.8 MB, free: 0.8125 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.008e-05/0.3747, allocations: 7.984 kB / 486.8 MB, free: 0.8047 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.108e-05/0.3747, allocations: 3.984 kB / 486.8 MB, free: 0.8008 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007938/0.3827, allocations: 5.116 MB / 491.9 MB, free: 11.54 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.152e-06/0.3827, allocations: 0 / 491.9 MB, free: 11.54 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009816/0.3837, allocations: 239.6 kB / 492.1 MB, free: 11.31 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001243/0.3849, allocations: 447 kB / 492.6 MB, free: 10.86 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001082/0.3851, allocations: 35.98 kB / 492.6 MB, free: 10.82 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008189/0.3933, allocations: 8.642 MB / 0.4895 GB, free: 1.617 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.05e-06/0.3933, allocations: 4 kB / 0.4895 GB, free: 1.613 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005346/0.3986, allocations: 3.517 MB / 0.493 GB, free: 14.01 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000907/0.3996, allocations: 434.7 kB / 0.4934 GB, free: 13.56 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003218/0.3999, allocations: 32 kB / 0.4934 GB, free: 13.53 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009249/0.4008, allocations: 83.89 kB / 0.4935 GB, free: 13.45 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003002/0.4011, allocations: 120.8 kB / 0.4936 GB, free: 13.33 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.139e-05/0.4012, allocations: 47.97 kB / 0.4936 GB, free: 13.29 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.00176/0.403, allocations: 1.194 MB / 0.4948 GB, free: 12.1 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.403, allocations: 0 / 0.4948 GB, free: 12.1 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001784/0.4048, allocations: 0.5038 MB / 0.4953 GB, free: 11.59 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 6 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],loadInertia.phi) * Number of discrete variables: 3 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (114): * Single equations (assignments): 110 * 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,1,100.0%), (1,6,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.0003972/0.4052, allocations: 207 kB / 0.4955 GB, free: 11.38 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003831/0.4091, allocations: 2.469 MB / 0.4979 GB, free: 8.848 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.4091, allocations: 0 / 0.4979 GB, free: 8.848 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002386/0.4115, allocations: 1.606 MB / 0.4995 GB, free: 7.195 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00193/0.4134, allocations: 479.7 kB / 0.4999 GB, free: 6.727 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007307/0.4207, allocations: 4.99 MB / 0.5048 GB, free: 1.668 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001607/0.4224, allocations: 2.005 MB / 0.5068 GB, free: 15.63 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001085/0.4235, allocations: 443.5 kB / 0.5072 GB, free: 15.19 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003541/0.4238, allocations: 131.4 kB / 0.5073 GB, free: 15.06 MB / 446.1 MB Notification: Performance of SimCode: time 4.81e-07/0.4238, allocations: 0 / 0.5073 GB, free: 15.06 MB / 446.1 MB Notification: Performance of Templates: time 0.04503/0.4689, allocations: 28.22 MB / 0.5349 GB, free: 3.09 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_DOL/SMR_DOL.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches