Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001806/0.001806, allocations: 116.6 kB / 17.33 MB, free: 5.98 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002104/0.002104, allocations: 205.8 kB / 18.27 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.462/1.462, allocations: 227.7 MB / 246.7 MB, free: 10.5 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00204/0.00204, allocations: 65.66 kB / 306.8 MB, free: 0.8281 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1141, allocations: 50.53 MB / 357.3 MB, free: 14.26 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL): time 0.01271/0.1268, allocations: 10.16 MB / 367.4 MB, free: 4.047 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007006/0.1339, allocations: 3.256 MB / 370.7 MB, free: 0.7773 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001621/0.1355, allocations: 51.75 kB / 370.8 MB, free: 0.7266 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002058/0.1376, allocations: 0.6331 MB / 371.4 MB, free: 92 kB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.18/0.3177, allocations: 0.752 MB / 372.1 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001216/0.3189, allocations: 373.1 kB / 372.5 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004735/0.3237, allocations: 2.961 MB / 375.5 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002915/0.3266, allocations: 2.483 MB / 377.9 MB, free: 9.645 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002438/0.3291, allocations: 1.361 MB / 379.3 MB, free: 9.371 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002396/0.3315, allocations: 1.737 MB / 381 MB, free: 8.625 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005464/0.332, allocations: 352.8 kB / 381.4 MB, free: 8.625 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001067/0.3331, allocations: 466.3 kB / 381.8 MB, free: 8.598 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009568/0.3341, allocations: 1.023 MB / 382.9 MB, free: 8.062 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001837/0.3359, allocations: 1.61 MB / 384.5 MB, free: 7.02 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004275/0.3402, allocations: 4.646 MB / 389.1 MB, free: 5.238 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.3402, allocations: 1.031 kB / 389.1 MB, free: 5.238 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3402, allocations: 0 / 389.1 MB, free: 5.238 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.505e-05/0.3403, allocations: 0 / 389.1 MB, free: 5.238 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: 606 * Number of variables: 606 Notification: Performance of Generate backend data structure: time 0.006124/0.3465, allocations: 3.278 MB / 392.4 MB, free: 2.996 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.82e-05/0.3465, allocations: 9.281 kB / 392.4 MB, free: 2.996 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00112/0.3477, allocations: 373.1 kB / 392.8 MB, free: 2.812 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002488/0.3502, allocations: 1.716 MB / 394.5 MB, free: 1.621 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001492/0.3503, allocations: 180.4 kB / 394.7 MB, free: 1.539 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003311/0.3507, allocations: 244.8 kB / 394.9 MB, free: 1.449 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004847/0.3555, allocations: 3.144 MB / 398 MB, free: 15.57 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.006e-05/0.3556, allocations: 2.719 kB / 398.1 MB, free: 15.57 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002333/0.3558, allocations: 95.72 kB / 398.1 MB, free: 15.5 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.897e-05/0.3559, allocations: 106 kB / 398.2 MB, free: 15.48 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004785/0.3607, allocations: 2.7 MB / 400.9 MB, free: 13.57 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01693/0.3777, allocations: 9.727 MB / 410.7 MB, free: 3.637 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002982/0.3807, allocations: 2.164 MB / 412.8 MB, free: 1.309 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001985/0.3827, allocations: 1.122 MB / 414 MB, free: 200 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000362/0.3831, allocations: 199.2 kB / 414.2 MB, free: 15.96 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.639e-05/0.3832, allocations: 55.55 kB / 414.2 MB, free: 15.9 MB / 334.1 MB Notification: Performance of pre-optimization done (n=116): time 3.046e-06/0.3832, allocations: 0 / 414.2 MB, free: 15.9 MB / 334.1 MB Notification: Performance of matching and sorting (n=131): time 0.01559/0.3988, allocations: 6.845 MB / 421.1 MB, free: 8.895 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.526e-05/0.3989, allocations: 68.72 kB / 421.1 MB, free: 8.812 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002823/0.4017, allocations: 1.759 MB / 422.9 MB, free: 7.051 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000116/0.4018, allocations: 45.7 kB / 422.9 MB, free: 7 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009529/0.4028, allocations: 1.155 MB / 424.1 MB, free: 5.832 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004376/0.4032, allocations: 457.4 kB / 424.5 MB, free: 5.391 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004964/0.4037, allocations: 283.3 kB / 424.8 MB, free: 5.109 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001304/0.4039, allocations: 309.1 kB / 425.1 MB, free: 4.805 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00135/0.4052, allocations: 0.7964 MB / 425.9 MB, free: 4.008 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001704/0.4069, allocations: 1.201 MB / 427.1 MB, free: 2.641 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00312/0.4101, allocations: 2.093 MB / 429.2 MB, free: 392 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.494e-06/0.4101, allocations: 4 kB / 429.2 MB, free: 388 kB / 334.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.004867/0.415, allocations: 2.67 MB / 431.9 MB, free: 13.67 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.657e-05/0.415, allocations: 12 kB / 431.9 MB, free: 13.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.264e-05/0.415, allocations: 12 kB / 431.9 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001056/0.4161, allocations: 420.3 kB / 432.3 MB, free: 13.22 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001401/0.4175, allocations: 367.4 kB / 432.7 MB, free: 12.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007914/0.4254, allocations: 7.08 MB / 439.7 MB, free: 5.371 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001729/0.4272, allocations: 107.8 kB / 439.8 MB, free: 5.266 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001713/0.4274, allocations: 63.98 kB / 439.9 MB, free: 5.203 MB / 350.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.00165/0.4291, allocations: 0.7998 MB / 440.7 MB, free: 4.395 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004616/0.4295, allocations: 181.8 kB / 440.9 MB, free: 4.215 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004513/0.434, allocations: 2.383 MB / 443.3 MB, free: 1.793 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.939e-05/0.4341, allocations: 16 kB / 443.3 MB, free: 1.777 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.976e-05/0.4341, allocations: 7.938 kB / 443.3 MB, free: 1.77 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.711e-05/0.4341, allocations: 7.969 kB / 443.3 MB, free: 1.762 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009688/0.4438, allocations: 5.131 MB / 448.4 MB, free: 12.52 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.129e-05/0.4439, allocations: 4.406 kB / 448.4 MB, free: 12.51 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001057/0.4449, allocations: 235.7 kB / 448.7 MB, free: 12.28 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001268/0.4462, allocations: 450 kB / 449.1 MB, free: 11.83 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00011/0.4463, allocations: 35.98 kB / 449.1 MB, free: 11.8 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009162/0.4555, allocations: 8.645 MB / 457.8 MB, free: 2.605 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.274e-06/0.4555, allocations: 7.938 kB / 457.8 MB, free: 2.598 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006492/0.462, allocations: 3.524 MB / 461.3 MB, free: 15 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001433/0.4635, allocations: 426.8 kB / 461.7 MB, free: 14.56 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003139/0.4638, allocations: 31.98 kB / 461.8 MB, free: 14.53 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001013/0.4648, allocations: 87.91 kB / 461.9 MB, free: 14.45 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003832/0.4652, allocations: 116.7 kB / 462 MB, free: 14.33 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.764e-05/0.4653, allocations: 39.98 kB / 462 MB, free: 14.29 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002143/0.4675, allocations: 1.21 MB / 463.2 MB, free: 13.09 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4675, allocations: 0 / 463.2 MB, free: 13.09 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002005/0.4695, allocations: 0.5001 MB / 463.7 MB, free: 12.59 MB / 382.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.0004733/0.47, allocations: 202.9 kB / 463.9 MB, free: 12.38 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005992/0.476, allocations: 3.117 MB / 467 MB, free: 9.207 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.45e-06/0.476, allocations: 0 / 467 MB, free: 9.207 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0027/0.4787, allocations: 1.606 MB / 468.6 MB, free: 7.547 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002727/0.4815, allocations: 482.5 kB / 469.1 MB, free: 7.086 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01018/0.4917, allocations: 6.085 MB / 475.2 MB, free: 0.9375 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002058/0.4938, allocations: 2.009 MB / 477.2 MB, free: 14.89 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001643/0.4954, allocations: 447.5 kB / 477.6 MB, free: 14.45 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000434/0.4959, allocations: 123.4 kB / 477.8 MB, free: 14.33 MB / 398.1 MB Notification: Performance of SimCode: time 7.11e-07/0.4959, allocations: 0 / 477.8 MB, free: 14.33 MB / 398.1 MB Notification: Performance of Templates: time 0.055/0.5509, allocations: 27.71 MB / 0.4936 GB, free: 2.949 MB / 414.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_DOL/SMR_DOL.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches