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.001282/0.001282, allocations: 117.1 kB / 17.83 MB, free: 5.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00131/0.00131, allocations: 215.7 kB / 18.79 MB, free: 4.383 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.469/1.469, allocations: 230.4 MB / 250 MB, free: 9.047 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.001866/0.001866, allocations: 67.84 kB / 367.4 MB, free: 7.031 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2431/0.245, allocations: 53.31 MB / 420.7 MB, free: 8.504 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL): time 0.01276/0.2577, allocations: 10.26 MB / 430.9 MB, free: 14.21 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007019/0.2648, allocations: 3.318 MB / 434.2 MB, free: 10.88 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001945/0.2667, allocations: 55.75 kB / 434.3 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002416/0.2691, allocations: 0.757 MB / 435.1 MB, free: 10.06 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003269/0.2724, allocations: 0.8815 MB / 435.9 MB, free: 9.176 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001249/0.2736, allocations: 427.4 kB / 436.4 MB, free: 8.758 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00422/0.2779, allocations: 2.984 MB / 439.3 MB, free: 5.758 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002609/0.2805, allocations: 1.778 MB / 441.1 MB, free: 3.914 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00227/0.2827, allocations: 1.37 MB / 442.5 MB, free: 2.539 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003004/0.2857, allocations: 1.74 MB / 444.2 MB, free: 0.793 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007941/0.2865, allocations: 352 kB / 444.6 MB, free: 460 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001171/0.2877, allocations: 471.8 kB / 445 MB, free: 15.98 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001104/0.2888, allocations: 1.028 MB / 446.1 MB, free: 14.96 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002141/0.2909, allocations: 1.61 MB / 447.7 MB, free: 13.34 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006562/0.2975, allocations: 4.714 MB / 452.4 MB, free: 8.609 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.024e-05/0.2975, allocations: 4 kB / 452.4 MB, free: 8.605 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.2975, allocations: 0 / 452.4 MB, free: 8.605 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001639/0.2977, allocations: 0 / 452.4 MB, free: 8.605 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: 606 * Number of variables: 606 Notification: Performance of Generate backend data structure: time 0.007987/0.3057, allocations: 3.351 MB / 455.7 MB, free: 5.184 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.443e-05/0.3057, allocations: 12.03 kB / 455.8 MB, free: 5.172 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001265/0.307, allocations: 382.8 kB / 456.1 MB, free: 4.797 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003636/0.3106, allocations: 1.785 MB / 457.9 MB, free: 2.957 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001895/0.3108, allocations: 184.8 kB / 458.1 MB, free: 2.773 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004856/0.3113, allocations: 235.9 kB / 458.3 MB, free: 2.543 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005861/0.3172, allocations: 3.137 MB / 461.5 MB, free: 15.32 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.177e-05/0.3172, allocations: 7.953 kB / 461.5 MB, free: 15.31 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002173/0.3174, allocations: 96 kB / 461.6 MB, free: 15.21 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000122/0.3176, allocations: 108.6 kB / 461.7 MB, free: 15.11 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004678/0.3222, allocations: 2.688 MB / 464.4 MB, free: 12.4 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01549/0.3377, allocations: 9.649 MB / 474 MB, free: 2.465 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002869/0.3406, allocations: 2.085 MB / 476.1 MB, free: 220 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001911/0.3425, allocations: 1.045 MB / 477.1 MB, free: 15.17 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003053/0.3428, allocations: 203.1 kB / 477.3 MB, free: 14.94 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.346e-05/0.3428, allocations: 51.56 kB / 477.4 MB, free: 14.88 MB / 398.1 MB Notification: Performance of pre-optimization done (n=116): time 3.366e-06/0.3429, allocations: 0 / 477.4 MB, free: 14.88 MB / 398.1 MB Notification: Performance of matching and sorting (n=131): time 0.01731/0.3602, allocations: 6.878 MB / 484.3 MB, free: 7.832 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.217e-05/0.3602, allocations: 68.72 kB / 484.3 MB, free: 7.754 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003914/0.3641, allocations: 1.759 MB / 486.1 MB, free: 5.992 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001635/0.3643, allocations: 45.7 kB / 486.1 MB, free: 5.941 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00138/0.3657, allocations: 1.19 MB / 487.3 MB, free: 4.738 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006095/0.3663, allocations: 479.9 kB / 487.8 MB, free: 4.266 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007202/0.367, allocations: 291.5 kB / 488.1 MB, free: 3.973 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001666/0.3672, allocations: 305.1 kB / 488.4 MB, free: 3.672 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002111/0.3693, allocations: 0.7925 MB / 489.2 MB, free: 2.879 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002444/0.3717, allocations: 1.209 MB / 490.4 MB, free: 1.492 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004873/0.3766, allocations: 2.09 MB / 492.5 MB, free: 15.23 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.083e-05/0.3766, allocations: 4 kB / 492.5 MB, free: 15.23 MB / 414.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.007092/0.3837, allocations: 2.675 MB / 495.1 MB, free: 12.52 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.316e-05/0.3838, allocations: 8 kB / 495.2 MB, free: 12.51 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.125e-05/0.3838, allocations: 16 kB / 495.2 MB, free: 12.49 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001555/0.3853, allocations: 415.4 kB / 495.6 MB, free: 12.07 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002209/0.3875, allocations: 363.4 kB / 495.9 MB, free: 11.72 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01136/0.3989, allocations: 7.081 MB / 0.4912 GB, free: 4.227 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002206/0.4011, allocations: 107.9 kB / 0.4913 GB, free: 4.121 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002168/0.4013, allocations: 60 kB / 0.4914 GB, free: 4.062 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.002125/0.4035, allocations: 0.8017 MB / 0.4922 GB, free: 3.25 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005503/0.404, allocations: 194.8 kB / 0.4923 GB, free: 3.059 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005173/0.4092, allocations: 2.368 MB / 0.4947 GB, free: 0.6484 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.642e-05/0.4092, allocations: 23.88 kB / 0.4947 GB, free: 0.625 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.556e-06/0.4092, allocations: 4 kB / 0.4947 GB, free: 0.6211 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.127e-05/0.4092, allocations: 3.984 kB / 0.4947 GB, free: 0.6172 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008684/0.4179, allocations: 5.093 MB / 0.4997 GB, free: 11.39 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.348e-06/0.4179, allocations: 4 kB / 0.4997 GB, free: 11.38 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001024/0.4189, allocations: 240 kB / 0.4999 GB, free: 11.15 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001198/0.4201, allocations: 459.1 kB / 0.5003 GB, free: 10.69 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001019/0.4202, allocations: 35.97 kB / 0.5004 GB, free: 10.65 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009117/0.4294, allocations: 8.639 MB / 0.5088 GB, free: 1.449 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.969e-06/0.4294, allocations: 4 kB / 0.5088 GB, free: 1.445 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005717/0.4351, allocations: 3.522 MB / 0.5123 GB, free: 13.84 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008761/0.4359, allocations: 443.7 kB / 0.5127 GB, free: 13.38 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002394/0.4362, allocations: 39.98 kB / 0.5127 GB, free: 13.34 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008992/0.4371, allocations: 79.91 kB / 0.5128 GB, free: 13.27 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002926/0.4374, allocations: 120.7 kB / 0.5129 GB, free: 13.15 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.817e-05/0.4375, allocations: 48.11 kB / 0.5129 GB, free: 13.1 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001918/0.4394, allocations: 1.207 MB / 0.5141 GB, free: 11.9 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4394, allocations: 0 / 0.5141 GB, free: 11.9 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001634/0.441, allocations: 0.5038 MB / 0.5146 GB, free: 11.4 MB / 446.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.0003744/0.4414, allocations: 194.9 kB / 0.5148 GB, free: 11.2 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003963/0.4454, allocations: 2.395 MB / 0.5171 GB, free: 8.742 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.47e-06/0.4454, allocations: 4 kB / 0.5171 GB, free: 8.738 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002561/0.4479, allocations: 1.547 MB / 0.5187 GB, free: 7.145 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001865/0.4498, allocations: 494.1 kB / 0.5191 GB, free: 6.668 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008552/0.4584, allocations: 5.069 MB / 0.5241 GB, free: 1.52 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00188/0.4602, allocations: 2.009 MB / 0.526 GB, free: 15.47 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001279/0.4615, allocations: 447.5 kB / 0.5265 GB, free: 15.03 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003904/0.4619, allocations: 127.4 kB / 0.5266 GB, free: 14.91 MB / 462.1 MB Notification: Performance of SimCode: time 9.02e-07/0.4619, allocations: 0 / 0.5266 GB, free: 14.91 MB / 462.1 MB Notification: Performance of Templates: time 0.2508/0.7127, allocations: 28.7 MB / 0.5546 GB, free: 111.3 MB / 462.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