Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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.0.0_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.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001504/0.001504, allocations: 107.6 kB / 17.06 MB, free: 5.824 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001648/0.001648, allocations: 192 kB / 18 MB, free: 4.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.342/1.342, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009027/0.0009027, allocations: 44.06 kB / 351.3 MB, free: 3.25 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2658/0.2667, allocations: 49.44 MB / 400.7 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL): time 0.01198/0.2787, allocations: 10.19 MB / 410.9 MB, free: 14.65 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006929/0.2857, allocations: 3.217 MB / 414.1 MB, free: 11.42 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001836/0.2876, allocations: 59.75 kB / 414.2 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002324/0.2899, allocations: 0.7335 MB / 414.9 MB, free: 10.63 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003215/0.2932, allocations: 0.8739 MB / 415.8 MB, free: 9.75 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001152/0.2944, allocations: 407.4 kB / 416.2 MB, free: 9.352 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003652/0.298, allocations: 2.969 MB / 419.2 MB, free: 6.371 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003449/0.3015, allocations: 2.48 MB / 421.7 MB, free: 3.824 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002271/0.3038, allocations: 1.355 MB / 423 MB, free: 2.465 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002806/0.3066, allocations: 1.689 MB / 424.7 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009151/0.3075, allocations: 356 kB / 425 MB, free: 432 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001268/0.3088, allocations: 451.9 kB / 425.5 MB, free: 15.98 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001323/0.3101, allocations: 1.017 MB / 426.5 MB, free: 14.96 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001938/0.3121, allocations: 1.61 MB / 428.1 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004166/0.3163, allocations: 4.669 MB / 432.8 MB, free: 8.66 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.3163, allocations: 0 / 432.8 MB, free: 8.66 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3163, allocations: 0 / 432.8 MB, free: 8.66 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.34e-05/0.3164, allocations: 0 / 432.8 MB, free: 8.66 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.006081/0.3225, allocations: 3.272 MB / 436.1 MB, free: 5.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.052e-05/0.3225, allocations: 12.03 kB / 436.1 MB, free: 5.309 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007298/0.3232, allocations: 325.2 kB / 436.4 MB, free: 4.988 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002612/0.3259, allocations: 1.744 MB / 438.1 MB, free: 3.188 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001358/0.326, allocations: 184.7 kB / 438.3 MB, free: 3.004 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003251/0.3264, allocations: 231.9 kB / 438.5 MB, free: 2.777 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004944/0.3313, allocations: 3.145 MB / 441.7 MB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.625e-05/0.3314, allocations: 15.89 kB / 441.7 MB, free: 15.53 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002129/0.3316, allocations: 92 kB / 441.8 MB, free: 15.44 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001087/0.3317, allocations: 104.6 kB / 441.9 MB, free: 15.33 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004407/0.3361, allocations: 2.696 MB / 444.6 MB, free: 12.62 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0151/0.3512, allocations: 9.63 MB / 454.2 MB, free: 2.699 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002896/0.3542, allocations: 2.169 MB / 456.4 MB, free: 372 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001893/0.3561, allocations: 1.112 MB / 457.5 MB, free: 15.25 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002944/0.3564, allocations: 208.1 kB / 457.7 MB, free: 15.02 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.608e-05/0.3564, allocations: 47.56 kB / 457.7 MB, free: 14.96 MB / 382.1 MB Notification: Performance of pre-optimization done (n=116): time 2.865e-06/0.3565, allocations: 0 / 457.7 MB, free: 14.96 MB / 382.1 MB Notification: Performance of matching and sorting (n=131): time 0.01413/0.3706, allocations: 6.839 MB / 464.6 MB, free: 7.953 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.398e-05/0.3707, allocations: 64.72 kB / 464.6 MB, free: 7.879 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002384/0.3731, allocations: 1.743 MB / 466.4 MB, free: 6.133 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.915e-05/0.3732, allocations: 49.7 kB / 466.4 MB, free: 6.078 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000945/0.3741, allocations: 1.148 MB / 467.6 MB, free: 4.914 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000362/0.3745, allocations: 461.3 kB / 468 MB, free: 4.457 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004445/0.3749, allocations: 283.4 kB / 468.3 MB, free: 4.172 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.406e-05/0.375, allocations: 305.1 kB / 468.6 MB, free: 3.871 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001243/0.3763, allocations: 0.7964 MB / 469.4 MB, free: 3.074 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001504/0.3778, allocations: 1.201 MB / 470.6 MB, free: 1.699 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002854/0.3807, allocations: 2.098 MB / 472.7 MB, free: 15.43 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.123e-06/0.3807, allocations: 4 kB / 472.7 MB, free: 15.43 MB / 398.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.004369/0.3851, allocations: 2.674 MB / 475.4 MB, free: 12.71 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.428e-05/0.3851, allocations: 12 kB / 475.4 MB, free: 12.7 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.727e-05/0.3851, allocations: 12 kB / 475.4 MB, free: 12.69 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009774/0.3861, allocations: 415.3 kB / 475.8 MB, free: 12.27 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001363/0.3875, allocations: 363.4 kB / 476.2 MB, free: 11.92 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006835/0.3943, allocations: 7.076 MB / 483.2 MB, free: 4.426 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001284/0.3956, allocations: 107.8 kB / 483.4 MB, free: 4.32 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000106/0.3957, allocations: 60 kB / 483.4 MB, free: 4.262 MB / 398.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.001348/0.3971, allocations: 0.8017 MB / 484.2 MB, free: 3.449 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003162/0.3974, allocations: 181.8 kB / 484.4 MB, free: 3.27 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004017/0.4014, allocations: 2.375 MB / 486.8 MB, free: 0.8516 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.232e-05/0.4015, allocations: 20.02 kB / 486.8 MB, free: 0.832 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.082e-05/0.4015, allocations: 4 kB / 486.8 MB, free: 0.8281 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.286e-05/0.4015, allocations: 3.984 kB / 486.8 MB, free: 0.8242 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007941/0.4095, allocations: 5.108 MB / 491.9 MB, free: 11.57 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.136e-06/0.4095, allocations: 4 kB / 491.9 MB, free: 11.57 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001014/0.4105, allocations: 236 kB / 492.1 MB, free: 11.34 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00111/0.4116, allocations: 456.9 kB / 492.6 MB, free: 10.88 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.826e-05/0.4117, allocations: 35.98 kB / 492.6 MB, free: 10.85 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00807/0.4198, allocations: 8.642 MB / 0.4895 GB, free: 1.641 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.736e-06/0.4198, allocations: 11.94 kB / 0.4895 GB, free: 1.629 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005367/0.4252, allocations: 3.513 MB / 0.493 GB, free: 14.03 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008202/0.426, allocations: 438.7 kB / 0.4934 GB, free: 13.58 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002352/0.4263, allocations: 32 kB / 0.4934 GB, free: 13.55 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009293/0.4272, allocations: 87.89 kB / 0.4935 GB, free: 13.46 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002801/0.4275, allocations: 116.7 kB / 0.4936 GB, free: 13.35 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.072e-05/0.4276, allocations: 39.98 kB / 0.4936 GB, free: 13.31 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001784/0.4294, allocations: 1.198 MB / 0.4948 GB, free: 12.12 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.4294, allocations: 4 kB / 0.4948 GB, free: 12.11 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001774/0.4312, allocations: 0.5038 MB / 0.4953 GB, free: 11.61 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.000411/0.4316, allocations: 203 kB / 0.4955 GB, free: 11.4 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003853/0.4355, allocations: 2.465 MB / 0.4979 GB, free: 8.871 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.758e-06/0.4355, allocations: 0 / 0.4979 GB, free: 8.871 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002484/0.438, allocations: 1.618 MB / 0.4995 GB, free: 7.207 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001982/0.44, allocations: 473 kB / 0.4999 GB, free: 6.746 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00765/0.4476, allocations: 4.997 MB / 0.5048 GB, free: 1.68 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001643/0.4493, allocations: 2.005 MB / 0.5068 GB, free: 15.64 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001107/0.4504, allocations: 439.5 kB / 0.5072 GB, free: 15.21 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00037/0.4508, allocations: 131.4 kB / 0.5073 GB, free: 15.08 MB / 446.1 MB Notification: Performance of SimCode: time 7.12e-07/0.4508, allocations: 0 / 0.5073 GB, free: 15.08 MB / 446.1 MB Notification: Performance of Templates: time 0.05034/0.5011, allocations: 28.23 MB / 0.5349 GB, free: 3.109 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_DOL/SMR_DOL.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches