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.001025/0.001025, allocations: 104.8 kB / 16.92 MB, free: 6.145 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.001113/0.001113, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.328/1.328, allocations: 222.9 MB / 241.5 MB, free: 15.25 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001083/0.001083, allocations: 50.58 kB / 300.6 MB, free: 5.883 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08987/0.09097, allocations: 49.45 MB / 350.1 MB, free: 4.426 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL): time 0.01181/0.1028, allocations: 10.18 MB / 360.2 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006117/0.109, allocations: 3.221 MB / 363.5 MB, free: 6.961 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009579/0.11, allocations: 63.75 kB / 363.5 MB, free: 6.898 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001525/0.1115, allocations: 0.6984 MB / 364.2 MB, free: 6.195 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001892/0.1134, allocations: 0.8347 MB / 365.1 MB, free: 5.355 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008187/0.1143, allocations: 411.4 kB / 365.5 MB, free: 4.953 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002679/0.117, allocations: 2.944 MB / 368.4 MB, free: 2 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.15/0.267, allocations: 2.489 MB / 370.9 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001876/0.2689, allocations: 1.341 MB / 372.2 MB, free: 11.49 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002069/0.271, allocations: 1.692 MB / 373.9 MB, free: 11.22 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005342/0.2715, allocations: 353.3 kB / 374.3 MB, free: 11.22 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008939/0.2724, allocations: 461 kB / 374.7 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009087/0.2734, allocations: 1.012 MB / 375.7 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001645/0.275, allocations: 1.606 MB / 377.3 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004679/0.2797, allocations: 4.624 MB / 382 MB, free: 10.05 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.552e-06/0.2797, allocations: 4 kB / 382 MB, free: 10.04 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.2797, allocations: 1.188 kB / 382 MB, free: 10.04 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001186/0.2799, allocations: 0 / 382 MB, free: 10.04 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.00665/0.2865, allocations: 3.257 MB / 385.2 MB, free: 8.219 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.635e-05/0.2866, allocations: 8.875 kB / 385.2 MB, free: 8.219 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008151/0.2874, allocations: 332.5 kB / 385.6 MB, free: 8.059 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002947/0.2904, allocations: 1.702 MB / 387.3 MB, free: 7.113 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001566/0.2905, allocations: 179.3 kB / 387.4 MB, free: 7.031 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003294/0.2909, allocations: 237.9 kB / 387.7 MB, free: 6.949 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004559/0.2954, allocations: 3.136 MB / 390.8 MB, free: 5.078 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.319e-05/0.2955, allocations: 6.625 kB / 390.8 MB, free: 5.074 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002156/0.2957, allocations: 97.69 kB / 390.9 MB, free: 5 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001299/0.2959, allocations: 111.1 kB / 391 MB, free: 4.98 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004092/0.3, allocations: 2.691 MB / 393.7 MB, free: 3.609 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01359/0.3136, allocations: 9.73 MB / 403.4 MB, free: 12.43 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002674/0.3163, allocations: 2.167 MB / 405.6 MB, free: 10.11 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001812/0.3181, allocations: 1.111 MB / 406.7 MB, free: 9.008 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000294/0.3184, allocations: 207.2 kB / 406.9 MB, free: 8.77 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.023e-05/0.3185, allocations: 47.56 kB / 407 MB, free: 8.715 MB / 318.1 MB Notification: Performance of pre-optimization done (n=116): time 3.317e-06/0.3185, allocations: 0 / 407 MB, free: 8.715 MB / 318.1 MB Notification: Performance of matching and sorting (n=131): time 0.01503/0.3335, allocations: 6.838 MB / 413.8 MB, free: 1.738 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.487e-05/0.3336, allocations: 68.72 kB / 413.9 MB, free: 1.656 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002804/0.3364, allocations: 1.741 MB / 415.6 MB, free: 15.91 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001116/0.3365, allocations: 45.7 kB / 415.7 MB, free: 15.86 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000754/0.3373, allocations: 1.158 MB / 416.8 MB, free: 14.69 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003532/0.3376, allocations: 447.6 kB / 417.2 MB, free: 14.26 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004435/0.3381, allocations: 287.4 kB / 417.5 MB, free: 13.97 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.312e-05/0.3382, allocations: 309.1 kB / 417.8 MB, free: 13.67 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001246/0.3394, allocations: 0.7886 MB / 418.6 MB, free: 12.88 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001456/0.3409, allocations: 1.211 MB / 419.8 MB, free: 11.51 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002825/0.3437, allocations: 2.093 MB / 421.9 MB, free: 9.301 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.773e-06/0.3438, allocations: 0 / 421.9 MB, free: 9.301 MB / 334.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.004662/0.3484, allocations: 2.68 MB / 424.6 MB, free: 6.668 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.68e-05/0.3485, allocations: 12 kB / 424.6 MB, free: 6.656 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.466e-05/0.3485, allocations: 12 kB / 424.6 MB, free: 6.645 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001044/0.3496, allocations: 418.1 kB / 425 MB, free: 6.227 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001343/0.3509, allocations: 369 kB / 425.4 MB, free: 5.887 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00704/0.358, allocations: 7.076 MB / 432.5 MB, free: 14.42 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001899/0.3599, allocations: 103.8 kB / 432.6 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001142/0.36, allocations: 68.16 kB / 432.6 MB, free: 14.25 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.001507/0.3615, allocations: 0.7915 MB / 433.4 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003257/0.3619, allocations: 185.8 kB / 433.6 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003852/0.3657, allocations: 2.386 MB / 436 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.119e-05/0.3658, allocations: 12 kB / 436 MB, free: 10.87 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.327e-06/0.3658, allocations: 7.938 kB / 436 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.388e-05/0.3658, allocations: 3.984 kB / 436 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008114/0.3739, allocations: 5.13 MB / 441.1 MB, free: 5.656 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.524e-06/0.374, allocations: 32 / 441.1 MB, free: 5.656 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009804/0.3749, allocations: 242.5 kB / 441.4 MB, free: 5.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001096/0.376, allocations: 449.3 kB / 441.8 MB, free: 4.984 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.161e-05/0.3762, allocations: 35.98 kB / 441.9 MB, free: 4.949 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007722/0.3839, allocations: 8.641 MB / 450.5 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.156e-06/0.3839, allocations: 10.56 kB / 450.5 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005617/0.3896, allocations: 3.522 MB / 454 MB, free: 8.195 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001127/0.3907, allocations: 434.7 kB / 454.5 MB, free: 7.75 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002842/0.391, allocations: 32 kB / 454.5 MB, free: 7.719 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009595/0.392, allocations: 83.89 kB / 454.6 MB, free: 7.637 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003036/0.3923, allocations: 122.1 kB / 454.7 MB, free: 7.52 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.531e-05/0.3924, allocations: 43.98 kB / 454.7 MB, free: 7.477 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001847/0.3942, allocations: 1.194 MB / 455.9 MB, free: 6.289 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.3942, allocations: 0 / 455.9 MB, free: 6.289 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001908/0.3962, allocations: 0.5 MB / 456.4 MB, free: 5.789 MB / 366.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.0004037/0.3966, allocations: 209.7 kB / 456.6 MB, free: 5.582 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.005352/0.4019, allocations: 3.104 MB / 459.7 MB, free: 2.48 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/0.402, allocations: 0 / 459.7 MB, free: 2.48 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002473/0.4044, allocations: 1.614 MB / 461.4 MB, free: 0.8477 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002447/0.4069, allocations: 475.8 kB / 461.8 MB, free: 396 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008232/0.4151, allocations: 5.049 MB / 466.9 MB, free: 11.29 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001682/0.4169, allocations: 2.001 MB / 468.9 MB, free: 9.25 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001569/0.4184, allocations: 447.5 kB / 469.3 MB, free: 8.809 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003605/0.4188, allocations: 127.4 kB / 469.4 MB, free: 8.684 MB / 382.1 MB Notification: Performance of SimCode: time 7.62e-07/0.4188, allocations: 0 / 469.4 MB, free: 8.684 MB / 382.1 MB Notification: Performance of Templates: time 0.05134/0.4702, allocations: 27.75 MB / 497.2 MB, free: 13.28 MB / 414.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