Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00102/0.00102, allocations: 191.5 kB / 17.43 MB, free: 4.402 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.27/1.27, allocations: 229.5 MB / 247.7 MB, free: 6.348 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009126/0.0009126, allocations: 95.38 kB / 299.8 MB, free: 5.363 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002336/0.0002337, allocations: 4 kB / 360.7 MB, free: 8.488 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.219/0.2192, allocations: 51.41 MB / 412.1 MB, free: 25.92 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.007824/0.2271, allocations: 10.2 MB / 422.3 MB, free: 15.68 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005911/0.233, allocations: 4.579 MB / 426.8 MB, free: 10.9 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001181/0.2342, allocations: 55.75 kB / 426.9 MB, free: 10.84 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001493/0.2357, allocations: 0.7305 MB / 427.6 MB, free: 10.11 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001802/0.2376, allocations: 0.8547 MB / 428.5 MB, free: 9.25 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008341/0.2384, allocations: 455.5 kB / 428.9 MB, free: 8.805 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002406/0.2408, allocations: 3.57 MB / 432.5 MB, free: 5.223 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001831/0.2427, allocations: 2.138 MB / 434.6 MB, free: 3.02 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00128/0.244, allocations: 1.112 MB / 435.7 MB, free: 1.902 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001379/0.2453, allocations: 1.529 MB / 437.3 MB, free: 376 kB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002751/0.2456, allocations: 160 kB / 437.4 MB, free: 216 kB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009459/0.2466, allocations: 427.5 kB / 437.8 MB, free: 15.79 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008058/0.2474, allocations: 0.8018 MB / 438.6 MB, free: 14.99 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001387/0.2488, allocations: 1.451 MB / 440.1 MB, free: 13.52 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00403/0.2528, allocations: 4.741 MB / 444.8 MB, free: 8.766 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.2529, allocations: 0 / 444.8 MB, free: 8.766 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.2529, allocations: 0 / 444.8 MB, free: 8.766 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.046e-05/0.2529, allocations: 0 / 444.8 MB, free: 8.766 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.005483/0.2584, allocations: 2.97 MB / 447.8 MB, free: 5.73 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.539e-05/0.2585, allocations: 8.031 kB / 447.8 MB, free: 5.723 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001486/0.26, allocations: 457 kB / 448.3 MB, free: 5.273 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002727/0.2627, allocations: 1.784 MB / 450 MB, free: 3.434 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001681/0.2629, allocations: 201.3 kB / 450.2 MB, free: 3.234 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003415/0.2632, allocations: 251.9 kB / 450.5 MB, free: 2.988 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005159/0.2684, allocations: 3.239 MB / 453.7 MB, free: 15.67 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.48e-05/0.2685, allocations: 15.89 kB / 453.7 MB, free: 15.66 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002073/0.2687, allocations: 100 kB / 453.8 MB, free: 15.56 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001237/0.2688, allocations: 112.9 kB / 454 MB, free: 15.45 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004346/0.2732, allocations: 2.713 MB / 456.7 MB, free: 12.72 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01518/0.2884, allocations: 10.44 MB / 467.1 MB, free: 1.934 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002174/0.2906, allocations: 1.783 MB / 468.9 MB, free: 44 kB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001687/0.2923, allocations: 1.077 MB / 470 MB, free: 14.96 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002668/0.2926, allocations: 199.2 kB / 470.2 MB, free: 14.73 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.151e-05/0.2926, allocations: 43.56 kB / 470.2 MB, free: 14.68 MB / 346.7 MB Notification: Performance of pre-optimization done (n=115): time 3.537e-06/0.2926, allocations: 0 / 470.2 MB, free: 14.68 MB / 346.7 MB Notification: Performance of matching and sorting (n=134): time 0.01667/0.3093, allocations: 7.754 MB / 478 MB, free: 6.801 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.158e-05/0.3094, allocations: 68.66 kB / 478 MB, free: 6.723 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002548/0.3119, allocations: 1.861 MB / 479.9 MB, free: 4.863 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.846e-05/0.312, allocations: 49.7 kB / 479.9 MB, free: 4.809 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008127/0.3129, allocations: 1.237 MB / 481.2 MB, free: 3.555 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003448/0.3132, allocations: 473.2 kB / 481.6 MB, free: 3.086 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.411e-05/0.3133, allocations: 36 kB / 481.7 MB, free: 3.051 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001442/0.3135, allocations: 373.9 kB / 482 MB, free: 2.68 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001299/0.3148, allocations: 0.8198 MB / 482.9 MB, free: 1.859 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00151/0.3163, allocations: 1.323 MB / 484.2 MB, free: 328 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002958/0.3192, allocations: 2.277 MB / 486.5 MB, free: 13.83 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.596e-06/0.3193, allocations: 4 kB / 486.5 MB, free: 13.83 MB / 362.7 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.004595/0.3239, allocations: 2.826 MB / 489.3 MB, free: 10.96 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.665e-05/0.3239, allocations: 12 kB / 489.3 MB, free: 10.95 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.027e-05/0.324, allocations: 16 kB / 489.3 MB, free: 10.94 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009184/0.3249, allocations: 426.5 kB / 489.7 MB, free: 10.51 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001402/0.3263, allocations: 403.3 kB / 490.1 MB, free: 10.12 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005434/0.3317, allocations: 5.32 MB / 495.4 MB, free: 4.527 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001577/0.3333, allocations: 135.8 kB / 495.6 MB, free: 4.395 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001429/0.3335, allocations: 71.98 kB / 495.6 MB, free: 4.324 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.00138/0.3349, allocations: 0.7984 MB / 496.4 MB, free: 3.516 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003957/0.3353, allocations: 189.7 kB / 496.6 MB, free: 3.328 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00398/0.3393, allocations: 2.426 MB / 499.1 MB, free: 0.8633 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.214e-05/0.3393, allocations: 19.98 kB / 499.1 MB, free: 0.8438 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.176e-06/0.3393, allocations: 4 kB / 499.1 MB, free: 0.8398 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.502e-05/0.3394, allocations: 3.984 kB / 499.1 MB, free: 0.8359 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008394/0.3478, allocations: 5.316 MB / 0.4926 GB, free: 11.37 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.234e-05/0.3478, allocations: 4 kB / 0.4926 GB, free: 11.36 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001045/0.3489, allocations: 259.6 kB / 0.4928 GB, free: 11.11 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00118/0.3501, allocations: 466.1 kB / 0.4933 GB, free: 10.64 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.579e-05/0.3502, allocations: 43.98 kB / 0.4933 GB, free: 10.6 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006656/0.3568, allocations: 6.727 MB / 0.4999 GB, free: 3.465 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.715e-06/0.3569, allocations: 11.94 kB / 0.4999 GB, free: 3.453 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1768/0.5336, allocations: 3.609 MB / 0.5034 GB, free: 87.82 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001292/0.535, allocations: 457.5 kB / 0.5039 GB, free: 87.73 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003011/0.5353, allocations: 32.11 kB / 0.5039 GB, free: 87.73 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001174/0.5365, allocations: 112.8 kB / 0.504 GB, free: 87.73 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003013/0.5368, allocations: 110.5 kB / 0.5041 GB, free: 87.73 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000106/0.5369, allocations: 44.84 kB / 0.5041 GB, free: 87.73 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001896/0.5388, allocations: 1.279 MB / 0.5054 GB, free: 87.62 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5388, allocations: 0 / 0.5054 GB, free: 87.62 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001576/0.5404, allocations: 0.5437 MB / 0.5059 GB, free: 87.62 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.0003946/0.5408, allocations: 228.7 kB / 0.5061 GB, free: 87.53 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003764/0.5446, allocations: 2.438 MB / 0.5085 GB, free: 86.73 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/0.5446, allocations: 3.938 kB / 0.5085 GB, free: 86.73 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002175/0.5468, allocations: 1.519 MB / 0.51 GB, free: 86.02 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002824/0.5496, allocations: 435.9 kB / 0.5104 GB, free: 85.88 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007578/0.5572, allocations: 6.35 MB / 0.5166 GB, free: 82.26 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00138/0.5586, allocations: 2.014 MB / 0.5186 GB, free: 81.3 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001403/0.56, allocations: 423.6 kB / 0.519 GB, free: 81.25 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003711/0.5604, allocations: 126.5 kB / 0.5191 GB, free: 81.23 MB / 378.7 MB Notification: Performance of SimCode: time 6.81e-07/0.5604, allocations: 0 / 0.5191 GB, free: 81.23 MB / 378.7 MB Notification: Performance of Templates: time 0.03791/0.5983, allocations: 26.49 MB / 0.545 GB, free: 57.21 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches