Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_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.SMEE_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|smee.is.1.|smee.is.2.|smee.idq_dr.1.|smee.idq_rr.2.|smee.idq_sr.1.|smee.idq_sr.2.|smee.inertiaRotor.phi|smee.inertiaRotor.w|smee.lesigma.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|smee.is.1.|smee.is.2.|smee.idq_dr.1.|smee.idq_rr.2.|smee.idq_sr.1.|smee.idq_sr.2.|smee.inertiaRotor.phi|smee.inertiaRotor.w|smee.lesigma.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001523/0.001523, allocations: 116.1 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00168/0.00168, allocations: 202 kB / 18.73 MB, free: 4.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.479/1.479, allocations: 227.4 MB / 246.9 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001192/0.001192, allocations: 63.89 kB / 358.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3223/0.3235, allocations: 50.53 MB / 409.2 MB, free: 1.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL): time 0.01312/0.3367, allocations: 11.85 MB / 421.1 MB, free: 5.699 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008919/0.3456, allocations: 3.982 MB / 425.1 MB, free: 1.707 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002375/0.348, allocations: 67.69 kB / 425.1 MB, free: 1.641 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002647/0.3507, allocations: 0.8852 MB / 426 MB, free: 0.75 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004588/0.3553, allocations: 1.025 MB / 427.1 MB, free: 15.72 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001626/0.357, allocations: 0.5266 MB / 427.6 MB, free: 15.19 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00448/0.3615, allocations: 3.471 MB / 431.1 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003032/0.3645, allocations: 2.708 MB / 433.8 MB, free: 8.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00269/0.3672, allocations: 1.553 MB / 435.3 MB, free: 7.371 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003269/0.3705, allocations: 1.938 MB / 437.3 MB, free: 5.426 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008545/0.3714, allocations: 408 kB / 437.7 MB, free: 5.027 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001402/0.3728, allocations: 0.6246 MB / 438.3 MB, free: 4.402 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001248/0.3741, allocations: 1.161 MB / 439.4 MB, free: 3.238 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00254/0.3766, allocations: 1.835 MB / 441.3 MB, free: 1.395 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006193/0.3828, allocations: 5.391 MB / 446.7 MB, free: 11.98 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.3828, allocations: 0 / 446.7 MB, free: 11.98 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3829, allocations: 4 kB / 446.7 MB, free: 11.98 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001322/0.383, allocations: 0 / 446.7 MB, free: 11.98 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 701 * Number of variables: 701 Notification: Performance of Generate backend data structure: time 0.008266/0.3913, allocations: 3.723 MB / 450.4 MB, free: 8.195 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.47e-05/0.3914, allocations: 12.03 kB / 450.4 MB, free: 8.184 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001757/0.3931, allocations: 464.7 kB / 450.9 MB, free: 7.727 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00344/0.3966, allocations: 1.984 MB / 452.8 MB, free: 5.688 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001529/0.3967, allocations: 205.4 kB / 453 MB, free: 5.484 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003939/0.3971, allocations: 268 kB / 453.3 MB, free: 5.223 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005871/0.403, allocations: 3.521 MB / 456.8 MB, free: 1.621 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.908e-05/0.4031, allocations: 15.84 kB / 456.8 MB, free: 1.605 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000251/0.4034, allocations: 112 kB / 456.9 MB, free: 1.496 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001333/0.4035, allocations: 117.3 kB / 457.1 MB, free: 1.379 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004866/0.4084, allocations: 2.972 MB / 460 MB, free: 14.39 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02041/0.4288, allocations: 10.96 MB / 471 MB, free: 3.098 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003443/0.4323, allocations: 2.277 MB / 473.3 MB, free: 0.6562 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00224/0.4346, allocations: 1.18 MB / 474.5 MB, free: 15.48 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003378/0.435, allocations: 203.5 kB / 474.7 MB, free: 15.24 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.772e-05/0.435, allocations: 47.88 kB / 474.7 MB, free: 15.18 MB / 398.1 MB Notification: Performance of pre-optimization done (n=131): time 4.739e-06/0.435, allocations: 3.984 kB / 474.7 MB, free: 15.18 MB / 398.1 MB Notification: Performance of matching and sorting (n=148): time 0.01741/0.4524, allocations: 7.522 MB / 482.2 MB, free: 7.52 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.777e-05/0.4525, allocations: 68.72 kB / 482.3 MB, free: 7.441 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003316/0.4558, allocations: 1.992 MB / 484.3 MB, free: 5.406 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001856/0.4561, allocations: 49.7 kB / 484.3 MB, free: 5.352 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001065/0.4571, allocations: 1.316 MB / 485.6 MB, free: 4.02 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000613/0.4578, allocations: 0.5045 MB / 486.2 MB, free: 3.508 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005188/0.4583, allocations: 327.2 kB / 486.5 MB, free: 3.18 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001868/0.4585, allocations: 301.1 kB / 486.8 MB, free: 2.883 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001705/0.4602, allocations: 0.8901 MB / 487.7 MB, free: 1.992 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001959/0.4622, allocations: 1.371 MB / 489 MB, free: 420 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003562/0.4657, allocations: 2.385 MB / 491.4 MB, free: 13.82 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.631e-05/0.4658, allocations: 4 kB / 491.4 MB, free: 13.82 MB / 414.1 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.005868/0.4717, allocations: 2.986 MB / 494.4 MB, free: 10.79 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.422e-05/0.4717, allocations: 15.98 kB / 494.4 MB, free: 10.78 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.675e-05/0.4718, allocations: 16 kB / 494.4 MB, free: 10.76 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001232/0.473, allocations: 462.5 kB / 494.9 MB, free: 10.3 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001716/0.4747, allocations: 427.3 kB / 495.3 MB, free: 9.883 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007078/0.4818, allocations: 6.1 MB / 0.4897 GB, free: 3.512 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001801/0.4836, allocations: 123.8 kB / 0.4898 GB, free: 3.391 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001646/0.4838, allocations: 75.98 kB / 0.4898 GB, free: 3.316 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 67 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (199): * Single equations (assignments): 194 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * 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): 2 systems {(3,16,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001658/0.4855, allocations: 0.8485 MB / 0.4907 GB, free: 2.457 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005419/0.486, allocations: 217.4 kB / 0.4909 GB, free: 2.242 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004558/0.4906, allocations: 2.591 MB / 0.4934 GB, free: 15.61 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.491e-05/0.4906, allocations: 16 kB / 0.4934 GB, free: 15.59 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.528e-06/0.4907, allocations: 8 kB / 0.4934 GB, free: 15.59 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.379e-05/0.4907, allocations: 15.8 kB / 0.4934 GB, free: 15.57 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009901/0.5006, allocations: 5.614 MB / 0.4989 GB, free: 9.82 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.508e-06/0.5006, allocations: 4 kB / 0.4989 GB, free: 9.816 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001209/0.5018, allocations: 284 kB / 0.4992 GB, free: 9.539 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001541/0.5034, allocations: 498.1 kB / 0.4997 GB, free: 9.043 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001372/0.5035, allocations: 43.97 kB / 0.4997 GB, free: 9 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008517/0.5121, allocations: 7.68 MB / 0.5072 GB, free: 0.8984 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/0.5121, allocations: 4 kB / 0.5072 GB, free: 0.8945 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006796/0.5189, allocations: 3.835 MB / 0.511 GB, free: 12.97 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00124/0.5202, allocations: 482.4 kB / 0.5114 GB, free: 12.48 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004748/0.5207, allocations: 35.98 kB / 0.5115 GB, free: 12.44 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001335/0.522, allocations: 99.89 kB / 0.5116 GB, free: 12.34 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002827/0.5223, allocations: 113.1 kB / 0.5117 GB, free: 12.23 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000103/0.5224, allocations: 43.92 kB / 0.5117 GB, free: 12.19 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002176/0.5246, allocations: 1.368 MB / 0.513 GB, free: 10.8 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.5246, allocations: 3.938 kB / 0.513 GB, free: 10.79 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002329/0.527, allocations: 0.5898 MB / 0.5136 GB, free: 10.2 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 7 (smee.inertiaRotor.w,smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[1],smee.idq_rr[2],smee.idq_dr[1],mechanicalMultiSensor.flange_a.phi) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (125): * Single equations (assignments): 120 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(3,16,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.0004434/0.5274, allocations: 223 kB / 0.5138 GB, free: 9.977 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004194/0.5316, allocations: 2.616 MB / 0.5164 GB, free: 7.312 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.129e-06/0.5316, allocations: 0 / 0.5164 GB, free: 7.312 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002563/0.5342, allocations: 1.603 MB / 0.518 GB, free: 5.672 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002253/0.5365, allocations: 0.4975 MB / 0.5184 GB, free: 5.176 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01022/0.5467, allocations: 5.603 MB / 0.5239 GB, free: 15.51 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002057/0.5488, allocations: 2.144 MB / 0.526 GB, free: 13.33 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001503/0.5503, allocations: 476.9 kB / 0.5265 GB, free: 12.86 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004316/0.5508, allocations: 135.4 kB / 0.5266 GB, free: 12.73 MB / 462.1 MB Notification: Performance of SimCode: time 9.21e-07/0.5508, allocations: 0 / 0.5266 GB, free: 12.73 MB / 462.1 MB Notification: Performance of Templates: time 0.2527/0.8035, allocations: 31.51 MB / 0.5574 GB, free: 115.8 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMEE_DOL/SMEE_DOL.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches