Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.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.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|constantSpeed.phi|smee.is.1.|smee.is.2.|smee.idq_dr.1.|smee.idq_rr.2.|smee.idq_sr.1.|smee.idq_sr.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|constantSpeed.phi|smee.is.1.|smee.is.2.|smee.idq_dr.1.|smee.idq_rr.2.|smee.idq_sr.1.|smee.idq_sr.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001476/0.001476, allocations: 99.45 kB / 17.59 MB, free: 5.562 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.001778/0.001779, allocations: 191.3 kB / 18.52 MB, free: 4.637 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.381/1.381, allocations: 222.9 MB / 242.2 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001229/0.001229, allocations: 46.14 kB / 301.3 MB, free: 5.863 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09362/0.09487, allocations: 49.45 MB / 350.7 MB, free: 4.406 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.01505/0.11, allocations: 11.46 MB / 362.2 MB, free: 8.875 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007561/0.1176, allocations: 3.873 MB / 366.1 MB, free: 4.988 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001797/0.1194, allocations: 63.75 kB / 366.1 MB, free: 4.926 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002447/0.1219, allocations: 0.8384 MB / 367 MB, free: 4.086 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003221/0.1252, allocations: 0.9355 MB / 367.9 MB, free: 3.145 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001455/0.1267, allocations: 0.5032 MB / 368.4 MB, free: 2.641 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1531/0.2798, allocations: 3.184 MB / 371.6 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003339/0.2832, allocations: 2.587 MB / 374.2 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001924/0.2851, allocations: 1.432 MB / 375.6 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002845/0.288, allocations: 1.811 MB / 377.4 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001056/0.2891, allocations: 386.9 kB / 377.8 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001475/0.2906, allocations: 0.6205 MB / 378.4 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001018/0.2916, allocations: 1.07 MB / 379.5 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002031/0.2936, allocations: 1.724 MB / 381.2 MB, free: 9.578 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00519/0.2988, allocations: 4.981 MB / 386.2 MB, free: 7.93 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.933e-06/0.2989, allocations: 1.375 kB / 386.2 MB, free: 7.93 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.2989, allocations: 0 / 386.2 MB, free: 7.93 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001532/0.2991, allocations: 4 kB / 386.2 MB, free: 7.926 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: 656 * Number of variables: 656 Notification: Performance of Generate backend data structure: time 0.008202/0.3073, allocations: 3.475 MB / 389.7 MB, free: 5.785 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.902e-05/0.3073, allocations: 9.156 kB / 389.7 MB, free: 5.785 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001404/0.3087, allocations: 412.8 kB / 390.1 MB, free: 5.598 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002911/0.3117, allocations: 1.784 MB / 391.9 MB, free: 4.406 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001567/0.3118, allocations: 199.8 kB / 392.1 MB, free: 4.316 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000419/0.3123, allocations: 259.6 kB / 392.3 MB, free: 4.223 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004956/0.3172, allocations: 3.243 MB / 395.6 MB, free: 2.309 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.636e-05/0.3173, allocations: 5.469 kB / 395.6 MB, free: 2.309 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002208/0.3175, allocations: 107.3 kB / 395.7 MB, free: 2.23 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001201/0.3177, allocations: 114.9 kB / 395.8 MB, free: 2.211 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004211/0.3219, allocations: 2.698 MB / 398.5 MB, free: 0.8359 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01725/0.3392, allocations: 10.37 MB / 408.9 MB, free: 7.004 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002433/0.3416, allocations: 1.786 MB / 410.6 MB, free: 5.121 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001858/0.3435, allocations: 1.057 MB / 411.7 MB, free: 4.066 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003093/0.3438, allocations: 202.3 kB / 411.9 MB, free: 3.832 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.991e-05/0.3439, allocations: 44.88 kB / 411.9 MB, free: 3.781 MB / 318.1 MB Notification: Performance of pre-optimization done (n=115): time 3.537e-06/0.3439, allocations: 0 / 411.9 MB, free: 3.781 MB / 318.1 MB Notification: Performance of matching and sorting (n=134): time 0.01884/0.3628, allocations: 7.421 MB / 419.4 MB, free: 12.26 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.195e-05/0.3628, allocations: 64.72 kB / 419.4 MB, free: 12.19 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002868/0.3657, allocations: 1.873 MB / 421.3 MB, free: 10.32 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001512/0.3659, allocations: 45.7 kB / 421.3 MB, free: 10.27 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000863/0.3667, allocations: 1.251 MB / 422.6 MB, free: 9.004 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003823/0.3671, allocations: 468.2 kB / 423.1 MB, free: 8.551 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004747/0.3676, allocations: 294.7 kB / 423.3 MB, free: 8.262 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.326e-05/0.3677, allocations: 301.1 kB / 423.6 MB, free: 7.965 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001379/0.3691, allocations: 0.8198 MB / 424.5 MB, free: 7.145 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001707/0.3708, allocations: 1.307 MB / 425.8 MB, free: 5.625 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003146/0.374, allocations: 2.256 MB / 428 MB, free: 3.223 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.318e-06/0.374, allocations: 4 kB / 428 MB, free: 3.219 MB / 334.1 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.004905/0.3789, allocations: 2.791 MB / 430.8 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.644e-05/0.379, allocations: 15.98 kB / 430.8 MB, free: 488 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.185e-05/0.379, allocations: 20.56 kB / 430.8 MB, free: 468 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009682/0.38, allocations: 423.7 kB / 431.3 MB, free: 36 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001508/0.3815, allocations: 399.8 kB / 431.7 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005923/0.3874, allocations: 5.795 MB / 437.4 MB, free: 9.625 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001841/0.3893, allocations: 123.7 kB / 437.6 MB, free: 9.504 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001538/0.3895, allocations: 78.7 kB / 437.6 MB, free: 9.43 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 70 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (187): * Single equations (assignments): 182 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * 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): 2 systems {(3,12,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001366/0.3908, allocations: 0.7826 MB / 438.4 MB, free: 8.66 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004245/0.3913, allocations: 197.6 kB / 438.6 MB, free: 8.465 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004066/0.3953, allocations: 2.389 MB / 441 MB, free: 6.051 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.247e-05/0.3954, allocations: 15.98 kB / 441 MB, free: 6.035 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.925e-06/0.3954, allocations: 4 kB / 441 MB, free: 6.031 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.528e-05/0.3954, allocations: 7.922 kB / 441 MB, free: 6.023 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008653/0.4041, allocations: 5.295 MB / 446.3 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.427e-06/0.4041, allocations: 4 kB / 446.3 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001079/0.4052, allocations: 248.9 kB / 446.6 MB, free: 436 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001179/0.4064, allocations: 465 kB / 447 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001037/0.4065, allocations: 35.98 kB / 447.1 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007135/0.4137, allocations: 7.34 MB / 454.4 MB, free: 8.203 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.811e-06/0.4137, allocations: 7.656 kB / 454.4 MB, free: 8.199 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005909/0.4196, allocations: 3.577 MB / 458 MB, free: 4.539 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00115/0.4208, allocations: 442.6 kB / 458.4 MB, free: 4.086 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005391/0.4213, allocations: 35.98 kB / 458.5 MB, free: 4.051 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001436/0.4228, allocations: 99.88 kB / 458.6 MB, free: 3.953 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002704/0.4231, allocations: 111.1 kB / 458.7 MB, free: 3.852 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001026/0.4232, allocations: 47.98 kB / 458.7 MB, free: 3.805 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002143/0.4253, allocations: 1.291 MB / 460 MB, free: 2.523 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4253, allocations: 0 / 460 MB, free: 2.523 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00213/0.4275, allocations: 0.5352 MB / 460.5 MB, free: 1.988 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 5 (smee.phiMechanical,smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[2],smee.idq_dr[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (115): * Single equations (assignments): 110 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(3,12,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.0004587/0.4279, allocations: 227.8 kB / 460.8 MB, free: 1.773 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.005392/0.4333, allocations: 2.987 MB / 463.7 MB, free: 14.81 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.853e-06/0.4334, allocations: 0 / 463.7 MB, free: 14.81 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002443/0.4358, allocations: 1.51 MB / 465.3 MB, free: 13.29 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002396/0.4382, allocations: 451.6 kB / 465.7 MB, free: 12.86 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0083/0.4465, allocations: 5.216 MB / 470.9 MB, free: 7.578 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001652/0.4482, allocations: 1.987 MB / 472.9 MB, free: 5.559 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007019/0.4489, allocations: 143.4 kB / 473 MB, free: 5.418 MB / 382.1 MB Notification: Performance of SimCode: time 5.21e-07/0.4489, allocations: 0 / 473 MB, free: 5.418 MB / 382.1 MB Notification: Performance of Templates: time 0.2327/0.6817, allocations: 70.07 MB / 0.5304 GB, free: 154.6 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMEE_Generator/SMEE_Generator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches