Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001183/0.001183, allocations: 180.9 kB / 16.71 MB, free: 4.938 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.256/1.256, allocations: 225.7 MB / 243.2 MB, free: 8.25 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007874/0.0007873, allocations: 100.7 kB / 294.4 MB, free: 9.473 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002295/0.0002295, allocations: 7.938 kB / 354.2 MB, free: 13.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.191/0.1912, allocations: 50.41 MB / 404.6 MB, free: 31.31 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.007373/0.1986, allocations: 10.18 MB / 414.8 MB, free: 21.09 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005279/0.2039, allocations: 4.206 MB / 419 MB, free: 16.77 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009631/0.2049, allocations: 55.75 kB / 419 MB, free: 16.71 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001315/0.2063, allocations: 0.7421 MB / 419.8 MB, free: 15.97 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001504/0.2078, allocations: 0.8586 MB / 420.6 MB, free: 15.11 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000693/0.2085, allocations: 455.5 kB / 421.1 MB, free: 14.66 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001997/0.2105, allocations: 3.577 MB / 424.6 MB, free: 11.07 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001714/0.2122, allocations: 2.134 MB / 426.8 MB, free: 8.871 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000971/0.2132, allocations: 1.101 MB / 427.9 MB, free: 7.766 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001244/0.2144, allocations: 1.521 MB / 429.4 MB, free: 6.238 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002346/0.2147, allocations: 160 kB / 429.6 MB, free: 6.082 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006997/0.2154, allocations: 423.4 kB / 430 MB, free: 5.668 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005835/0.216, allocations: 0.798 MB / 430.8 MB, free: 4.867 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009464/0.2169, allocations: 1.447 MB / 432.2 MB, free: 3.406 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003058/0.22, allocations: 4.733 MB / 436.9 MB, free: 14.66 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.22, allocations: 0 / 436.9 MB, free: 14.66 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.22, allocations: 4 kB / 436.9 MB, free: 14.65 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.249e-05/0.2201, allocations: 0 / 436.9 MB, free: 14.65 MB / 314.7 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.005262/0.2254, allocations: 2.955 MB / 439.9 MB, free: 11.63 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.724e-05/0.2254, allocations: 8.031 kB / 439.9 MB, free: 11.62 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001149/0.2266, allocations: 416.9 kB / 440.3 MB, free: 11.21 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002749/0.2294, allocations: 1.792 MB / 442.1 MB, free: 9.367 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001768/0.2296, allocations: 197.3 kB / 442.3 MB, free: 9.172 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000349/0.2299, allocations: 247.9 kB / 442.5 MB, free: 8.93 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005084/0.235, allocations: 3.247 MB / 445.8 MB, free: 5.605 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.136e-05/0.2351, allocations: 7.938 kB / 445.8 MB, free: 5.598 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001988/0.2353, allocations: 100 kB / 445.9 MB, free: 5.5 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000123/0.2354, allocations: 120.9 kB / 446 MB, free: 5.379 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00435/0.2398, allocations: 2.709 MB / 448.7 MB, free: 2.656 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01497/0.2547, allocations: 10.45 MB / 459.2 MB, free: 7.859 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002124/0.2569, allocations: 1.784 MB / 461 MB, free: 5.969 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001599/0.2585, allocations: 1.057 MB / 462 MB, free: 4.914 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002949/0.2588, allocations: 211.2 kB / 462.2 MB, free: 4.668 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.029e-05/0.2589, allocations: 47.56 kB / 462.3 MB, free: 4.613 MB / 330.7 MB Notification: Performance of pre-optimization done (n=115): time 4.328e-06/0.2589, allocations: 0 / 462.3 MB, free: 4.613 MB / 330.7 MB Notification: Performance of matching and sorting (n=134): time 0.01656/0.2755, allocations: 7.757 MB / 470 MB, free: 12.73 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.534e-05/0.2755, allocations: 64.72 kB / 470.1 MB, free: 12.65 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002402/0.2779, allocations: 1.857 MB / 471.9 MB, free: 10.8 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.17e-05/0.278, allocations: 45.7 kB / 472 MB, free: 10.75 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007588/0.2788, allocations: 1.241 MB / 473.2 MB, free: 9.488 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003466/0.2792, allocations: 473.2 kB / 473.7 MB, free: 9.02 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.537e-05/0.2792, allocations: 32 kB / 473.7 MB, free: 8.988 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001445/0.2794, allocations: 377.9 kB / 474.1 MB, free: 8.613 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001275/0.2807, allocations: 0.8198 MB / 474.9 MB, free: 7.793 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001568/0.2823, allocations: 1.331 MB / 476.2 MB, free: 6.242 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003028/0.2853, allocations: 2.277 MB / 478.5 MB, free: 3.754 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.215e-06/0.2853, allocations: 4 kB / 478.5 MB, free: 3.75 MB / 346.7 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.004601/0.2899, allocations: 2.822 MB / 481.3 MB, free: 0.8867 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.703e-05/0.29, allocations: 12 kB / 481.4 MB, free: 0.875 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.125e-05/0.29, allocations: 16 kB / 481.4 MB, free: 0.8594 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009753/0.291, allocations: 418.5 kB / 481.8 MB, free: 452 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001438/0.2924, allocations: 415.3 kB / 482.2 MB, free: 36 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005309/0.2978, allocations: 5.312 MB / 487.5 MB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001497/0.2993, allocations: 135.8 kB / 487.6 MB, free: 10.32 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001254/0.2994, allocations: 75.92 kB / 487.7 MB, free: 10.25 MB / 362.7 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.001319/0.3007, allocations: 0.7953 MB / 488.5 MB, free: 9.441 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003235/0.3011, allocations: 193.7 kB / 488.7 MB, free: 9.25 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00389/0.305, allocations: 2.422 MB / 491.1 MB, free: 6.785 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.213e-05/0.305, allocations: 23.98 kB / 491.1 MB, free: 6.762 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.645e-06/0.305, allocations: 4 kB / 491.1 MB, free: 6.758 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.048e-05/0.305, allocations: 3.984 kB / 491.1 MB, free: 6.754 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007814/0.3129, allocations: 5.304 MB / 496.5 MB, free: 1.301 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.194e-05/0.3129, allocations: 8 kB / 496.5 MB, free: 1.293 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009927/0.3139, allocations: 267.6 kB / 496.7 MB, free: 1.031 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001067/0.315, allocations: 454 kB / 497.2 MB, free: 0.5781 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.691e-05/0.3151, allocations: 43.97 kB / 497.2 MB, free: 0.5352 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006424/0.3215, allocations: 6.726 MB / 0.4921 GB, free: 9.402 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.58e-06/0.3215, allocations: 8 kB / 0.4921 GB, free: 9.395 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005361/0.3269, allocations: 3.615 MB / 0.4957 GB, free: 5.672 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001037/0.3279, allocations: 450.6 kB / 0.4961 GB, free: 5.211 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002544/0.3282, allocations: 36 kB / 0.4961 GB, free: 5.176 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001049/0.3293, allocations: 111.9 kB / 0.4962 GB, free: 5.066 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002516/0.3295, allocations: 112.7 kB / 0.4963 GB, free: 4.957 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.338e-05/0.3296, allocations: 40 kB / 0.4964 GB, free: 4.918 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001751/0.3314, allocations: 1.283 MB / 0.4976 GB, free: 3.645 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.3314, allocations: 0 / 0.4976 GB, free: 3.645 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001638/0.333, allocations: 0.5547 MB / 0.4982 GB, free: 3.09 MB / 378.7 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.0004146/0.3335, allocations: 229.8 kB / 0.4984 GB, free: 2.859 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004237/0.3377, allocations: 2.424 MB / 0.5008 GB, free: 400 kB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.3377, allocations: 0.5 kB / 0.5008 GB, free: 400 kB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.1609/0.4986, allocations: 1.526 MB / 0.5022 GB, free: 95.13 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003214/0.5019, allocations: 424.1 kB / 0.5027 GB, free: 95.12 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008283/0.5102, allocations: 6.38 MB / 0.5089 GB, free: 92.08 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001575/0.5118, allocations: 2.007 MB / 0.5108 GB, free: 91.13 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001614/0.5134, allocations: 421.7 kB / 0.5112 GB, free: 91.07 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004176/0.5138, allocations: 130.4 kB / 0.5114 GB, free: 91.06 MB / 378.7 MB Notification: Performance of SimCode: time 6.11e-07/0.5138, allocations: 0 / 0.5114 GB, free: 91.06 MB / 378.7 MB Notification: Performance of Templates: time 0.03883/0.5527, allocations: 26.43 MB / 0.5372 GB, free: 68.38 MB / 378.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMEE_Generator/SMEE_Generator.csv","../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