Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.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_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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001578/0.001578, allocations: 113 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001859/0.001859, allocations: 212.9 kB / 19.4 MB, free: 3.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.372/1.372, allocations: 227.4 MB / 247.6 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001311/0.001311, allocations: 59.91 kB / 359.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2836/0.2849, allocations: 50.55 MB / 409.9 MB, free: 1.605 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL): time 0.01101/0.296, allocations: 10.22 MB / 420.2 MB, free: 7.344 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006764/0.3028, allocations: 3.306 MB / 423.5 MB, free: 4.027 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001847/0.3047, allocations: 55.75 kB / 423.5 MB, free: 3.973 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002267/0.307, allocations: 0.7024 MB / 424.2 MB, free: 3.266 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004617/0.3117, allocations: 0.8347 MB / 425.1 MB, free: 2.426 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001876/0.3136, allocations: 427.4 kB / 425.5 MB, free: 2.008 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005618/0.3192, allocations: 2.984 MB / 428.5 MB, free: 15.01 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00452/0.3238, allocations: 2.484 MB / 431 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003066/0.3269, allocations: 1.363 MB / 432.3 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004005/0.3309, allocations: 1.705 MB / 434 MB, free: 9.379 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001194/0.3322, allocations: 352 kB / 434.4 MB, free: 9.035 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001965/0.3342, allocations: 463.8 kB / 434.8 MB, free: 8.582 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001627/0.3358, allocations: 1.021 MB / 435.8 MB, free: 7.559 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003597/0.3394, allocations: 1.614 MB / 437.4 MB, free: 5.938 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007344/0.3468, allocations: 4.701 MB / 442.2 MB, free: 1.223 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.246e-06/0.3469, allocations: 0 / 442.2 MB, free: 1.223 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.435e-06/0.3469, allocations: 0 / 442.2 MB, free: 1.223 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001581/0.347, allocations: 0 / 442.2 MB, free: 1.223 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.01168/0.3587, allocations: 3.276 MB / 445.4 MB, free: 13.88 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.959e-05/0.3588, allocations: 12.03 kB / 445.4 MB, free: 13.86 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001855/0.3607, allocations: 361.1 kB / 445.8 MB, free: 13.51 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004756/0.3655, allocations: 1.776 MB / 447.6 MB, free: 11.68 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000211/0.3657, allocations: 176.8 kB / 447.7 MB, free: 11.5 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006713/0.3664, allocations: 235.9 kB / 448 MB, free: 11.27 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008625/0.375, allocations: 3.133 MB / 451.1 MB, free: 8.047 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.721e-05/0.3752, allocations: 11.94 kB / 451.1 MB, free: 8.035 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000342/0.3755, allocations: 96 kB / 451.2 MB, free: 7.941 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001829/0.3757, allocations: 104.6 kB / 451.3 MB, free: 7.836 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007314/0.3831, allocations: 2.696 MB / 454 MB, free: 5.125 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02193/0.405, allocations: 9.618 MB / 463.6 MB, free: 11.21 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00398/0.4091, allocations: 2.166 MB / 465.8 MB, free: 8.883 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002731/0.4118, allocations: 1.105 MB / 466.9 MB, free: 7.781 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003939/0.4123, allocations: 211.2 kB / 467.1 MB, free: 7.539 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.633e-05/0.4123, allocations: 47.55 kB / 467.1 MB, free: 7.484 MB / 382.1 MB Notification: Performance of pre-optimization done (n=116): time 4.759e-06/0.4123, allocations: 0 / 467.1 MB, free: 7.484 MB / 382.1 MB Notification: Performance of matching and sorting (n=131): time 0.0202/0.4325, allocations: 6.849 MB / 474 MB, free: 480 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.764e-05/0.4327, allocations: 68.7 kB / 474.1 MB, free: 400 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003722/0.4364, allocations: 1.759 MB / 475.8 MB, free: 14.63 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002605/0.4367, allocations: 45.7 kB / 475.9 MB, free: 14.58 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001177/0.4379, allocations: 1.163 MB / 477 MB, free: 13.4 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006246/0.4385, allocations: 449.5 kB / 477.5 MB, free: 12.95 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006573/0.4392, allocations: 287.3 kB / 477.7 MB, free: 12.66 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001284/0.4393, allocations: 309.1 kB / 478.1 MB, free: 12.36 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0019/0.4412, allocations: 0.7964 MB / 478.8 MB, free: 11.56 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002233/0.4435, allocations: 1.213 MB / 480.1 MB, free: 10.17 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004291/0.4478, allocations: 2.09 MB / 482.2 MB, free: 7.914 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.71e-05/0.4478, allocations: 7.922 kB / 482.2 MB, free: 7.906 MB / 398.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.006694/0.4545, allocations: 2.67 MB / 484.8 MB, free: 5.195 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.301e-05/0.4546, allocations: 12 kB / 484.8 MB, free: 5.184 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.853e-05/0.4547, allocations: 15.94 kB / 484.9 MB, free: 5.168 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001411/0.4561, allocations: 419.5 kB / 485.3 MB, free: 4.746 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002094/0.4582, allocations: 363.4 kB / 485.6 MB, free: 4.391 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01002/0.4682, allocations: 7.068 MB / 492.7 MB, free: 12.91 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002255/0.4706, allocations: 111.7 kB / 492.8 MB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000242/0.4708, allocations: 67.98 kB / 492.9 MB, free: 12.73 MB / 414.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.002004/0.4728, allocations: 0.8017 MB / 493.7 MB, free: 11.92 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006081/0.4735, allocations: 181.8 kB / 493.8 MB, free: 11.74 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005825/0.4793, allocations: 2.379 MB / 496.2 MB, free: 9.32 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.418e-05/0.4794, allocations: 19.94 kB / 496.2 MB, free: 9.301 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.492e-05/0.4794, allocations: 4 kB / 496.2 MB, free: 9.297 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.149e-05/0.4794, allocations: 7.969 kB / 496.3 MB, free: 9.289 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0127/0.4921, allocations: 5.097 MB / 0.4896 GB, free: 4.055 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.395e-05/0.4922, allocations: 8.062 kB / 0.4896 GB, free: 4.047 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001482/0.4937, allocations: 235.6 kB / 0.4898 GB, free: 3.816 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001626/0.4953, allocations: 450.9 kB / 0.4903 GB, free: 3.363 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001835/0.4955, allocations: 35.98 kB / 0.4903 GB, free: 3.328 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01157/0.5071, allocations: 8.64 MB / 0.4987 GB, free: 10.12 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.157e-06/0.5072, allocations: 7.938 kB / 0.4987 GB, free: 10.12 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008038/0.5152, allocations: 3.517 MB / 0.5022 GB, free: 6.512 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001449/0.5167, allocations: 434.7 kB / 0.5026 GB, free: 6.066 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004573/0.5172, allocations: 35.98 kB / 0.5026 GB, free: 6.031 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001284/0.5185, allocations: 79.91 kB / 0.5027 GB, free: 5.953 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003668/0.5189, allocations: 128.6 kB / 0.5028 GB, free: 5.828 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001112/0.519, allocations: 36 kB / 0.5029 GB, free: 5.793 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002501/0.5215, allocations: 1.21 MB / 0.504 GB, free: 4.59 MB / 430.1 MB Notification: Performance of sort global known variables: time 6.01e-07/0.5215, allocations: 0 / 0.504 GB, free: 4.59 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002594/0.5241, allocations: 0.504 MB / 0.5045 GB, free: 4.086 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.0005504/0.5247, allocations: 199.2 kB / 0.5047 GB, free: 3.883 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00498/0.5297, allocations: 2.469 MB / 0.5071 GB, free: 1.352 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.883e-06/0.5297, allocations: 4.062 kB / 0.5071 GB, free: 1.348 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003139/0.5329, allocations: 1.61 MB / 0.5087 GB, free: 15.69 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003103/0.536, allocations: 483.8 kB / 0.5092 GB, free: 15.23 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01107/0.5471, allocations: 5.029 MB / 0.5141 GB, free: 10.12 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001997/0.5491, allocations: 1.961 MB / 0.516 GB, free: 8.125 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007652/0.5499, allocations: 139.4 kB / 0.5161 GB, free: 7.988 MB / 446.1 MB Notification: Performance of SimCode: time 6.11e-07/0.5499, allocations: 3.938 kB / 0.5161 GB, free: 7.984 MB / 446.1 MB Notification: Performance of Templates: time 0.3047/0.8546, allocations: 79.84 MB / 0.5941 GB, free: 79.31 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_DOL/SMR_DOL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches