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.001701/0.001701, allocations: 117.7 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001996/0.001997, allocations: 204.9 kB / 19.4 MB, free: 3.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.542/1.542, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0012/0.001201, allocations: 55.91 kB / 359.4 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.251/0.2522, allocations: 50.54 MB / 409.9 MB, free: 1.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL): time 0.01743/0.2697, allocations: 10.24 MB / 420.2 MB, free: 7.32 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008675/0.2784, allocations: 3.303 MB / 423.5 MB, free: 4.008 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002058/0.2805, allocations: 59.69 kB / 423.5 MB, free: 3.949 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002705/0.2833, allocations: 0.7024 MB / 424.2 MB, free: 3.242 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003711/0.287, allocations: 0.8386 MB / 425.1 MB, free: 2.398 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001532/0.2886, allocations: 419.4 kB / 425.5 MB, free: 1.988 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005289/0.2939, allocations: 2.992 MB / 428.5 MB, free: 14.98 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005273/0.2992, allocations: 2.477 MB / 431 MB, free: 12.44 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003523/0.3028, allocations: 1.363 MB / 432.3 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004404/0.3072, allocations: 1.697 MB / 434 MB, free: 9.367 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001357/0.3086, allocations: 352 kB / 434.4 MB, free: 9.023 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002133/0.3108, allocations: 471.8 kB / 434.8 MB, free: 8.562 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002054/0.3129, allocations: 1.017 MB / 435.8 MB, free: 7.543 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003516/0.3164, allocations: 1.61 MB / 437.4 MB, free: 5.926 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007977/0.3244, allocations: 4.701 MB / 442.1 MB, free: 1.211 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.046e-06/0.3245, allocations: 0 / 442.1 MB, free: 1.211 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.068e-06/0.3245, allocations: 4 kB / 442.1 MB, free: 1.207 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001317/0.3247, allocations: 3.938 kB / 442.2 MB, free: 1.203 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.01162/0.3363, allocations: 3.276 MB / 445.4 MB, free: 13.86 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.363e-05/0.3364, allocations: 8.031 kB / 445.4 MB, free: 13.85 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002088/0.3385, allocations: 369.1 kB / 445.8 MB, free: 13.48 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005868/0.3444, allocations: 1.768 MB / 447.6 MB, free: 11.66 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002438/0.3447, allocations: 180.7 kB / 447.7 MB, free: 11.48 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007635/0.3454, allocations: 231.9 kB / 448 MB, free: 11.25 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009395/0.3549, allocations: 3.141 MB / 451.1 MB, free: 8.023 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.489e-05/0.355, allocations: 4 kB / 451.1 MB, free: 8.02 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003761/0.3554, allocations: 92 kB / 451.2 MB, free: 7.93 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001809/0.3556, allocations: 108.6 kB / 451.3 MB, free: 7.82 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008311/0.3639, allocations: 2.696 MB / 454 MB, free: 5.109 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02677/0.3907, allocations: 9.63 MB / 463.6 MB, free: 11.19 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004842/0.3956, allocations: 2.162 MB / 465.8 MB, free: 8.859 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003319/0.399, allocations: 1.105 MB / 466.9 MB, free: 7.758 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004466/0.3994, allocations: 207.2 kB / 467.1 MB, free: 7.52 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.452e-05/0.3995, allocations: 43.56 kB / 467.1 MB, free: 7.469 MB / 382.1 MB Notification: Performance of pre-optimization done (n=116): time 7.474e-06/0.3995, allocations: 4 kB / 467.1 MB, free: 7.465 MB / 382.1 MB Notification: Performance of matching and sorting (n=131): time 0.02014/0.4197, allocations: 6.852 MB / 474 MB, free: 460 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.504e-05/0.4198, allocations: 68.72 kB / 474.1 MB, free: 380 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002684/0.4225, allocations: 1.759 MB / 475.8 MB, free: 14.61 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001102/0.4226, allocations: 45.7 kB / 475.9 MB, free: 14.55 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008404/0.4234, allocations: 1.159 MB / 477 MB, free: 13.38 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003891/0.4238, allocations: 457.5 kB / 477.5 MB, free: 12.93 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000484/0.4243, allocations: 287.3 kB / 477.8 MB, free: 12.64 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001039/0.4244, allocations: 309 kB / 478.1 MB, free: 12.34 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001306/0.4258, allocations: 0.7925 MB / 478.9 MB, free: 11.54 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001575/0.4273, allocations: 1.209 MB / 480.1 MB, free: 10.16 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002878/0.4302, allocations: 2.098 MB / 482.2 MB, free: 7.891 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.147e-06/0.4303, allocations: 4 kB / 482.2 MB, free: 7.887 MB / 398.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.004443/0.4347, allocations: 2.671 MB / 484.8 MB, free: 5.176 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.404e-05/0.4347, allocations: 12 kB / 484.8 MB, free: 5.164 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.315e-05/0.4348, allocations: 12 kB / 484.9 MB, free: 5.152 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009814/0.4358, allocations: 419.3 kB / 485.3 MB, free: 4.73 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001342/0.4371, allocations: 355.4 kB / 485.6 MB, free: 4.383 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007666/0.4448, allocations: 7.08 MB / 492.7 MB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001575/0.4464, allocations: 111.7 kB / 492.8 MB, free: 12.78 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002203/0.4466, allocations: 60 kB / 492.9 MB, free: 12.72 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.001447/0.4481, allocations: 0.8094 MB / 493.7 MB, free: 11.9 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000496/0.4486, allocations: 181.8 kB / 493.8 MB, free: 11.72 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004485/0.4531, allocations: 2.387 MB / 496.2 MB, free: 9.293 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.41e-05/0.4531, allocations: 15.94 kB / 496.2 MB, free: 9.277 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.286e-05/0.4532, allocations: 4 kB / 496.3 MB, free: 9.273 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.329e-05/0.4532, allocations: 3.984 kB / 496.3 MB, free: 9.27 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009233/0.4624, allocations: 5.097 MB / 0.4896 GB, free: 4.035 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.918e-06/0.4625, allocations: 4 kB / 0.4896 GB, free: 4.031 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009919/0.4634, allocations: 236.1 kB / 0.4898 GB, free: 3.801 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001115/0.4646, allocations: 451.2 kB / 0.4903 GB, free: 3.348 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000114/0.4647, allocations: 43.95 kB / 0.4903 GB, free: 3.305 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007836/0.4726, allocations: 8.638 MB / 0.4987 GB, free: 10.11 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.2e-06/0.4726, allocations: 7.938 kB / 0.4987 GB, free: 10.1 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005455/0.4781, allocations: 3.513 MB / 0.5022 GB, free: 6.496 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001095/0.4792, allocations: 434.7 kB / 0.5026 GB, free: 6.051 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000389/0.4796, allocations: 35.98 kB / 0.5026 GB, free: 6.016 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001068/0.4807, allocations: 83.91 kB / 0.5027 GB, free: 5.934 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003032/0.481, allocations: 120.7 kB / 0.5028 GB, free: 5.816 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.758e-05/0.4811, allocations: 39.98 kB / 0.5029 GB, free: 5.777 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001989/0.4831, allocations: 1.214 MB / 0.504 GB, free: 4.57 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.4831, allocations: 0 / 0.504 GB, free: 4.57 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001891/0.485, allocations: 0.5079 MB / 0.5045 GB, free: 4.062 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.0004261/0.4854, allocations: 199 kB / 0.5047 GB, free: 3.859 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004064/0.4895, allocations: 2.469 MB / 0.5071 GB, free: 1.328 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.57e-06/0.4895, allocations: 0 / 0.5071 GB, free: 1.328 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002505/0.492, allocations: 1.61 MB / 0.5087 GB, free: 15.67 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002373/0.4944, allocations: 484.8 kB / 0.5092 GB, free: 15.2 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008238/0.5027, allocations: 5.014 MB / 0.5141 GB, free: 10.11 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00175/0.5045, allocations: 1.973 MB / 0.516 GB, free: 8.102 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005866/0.5051, allocations: 139.4 kB / 0.5161 GB, free: 7.965 MB / 446.1 MB Notification: Performance of SimCode: time 6.21e-07/0.5051, allocations: 0 / 0.5161 GB, free: 7.965 MB / 446.1 MB Notification: Performance of Templates: time 0.4324/0.9374, allocations: 80.16 MB / 0.5944 GB, free: 79.62 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