Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Utilities.TestExamplesCalculator.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestExamplesCalculator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestExamplesCalculator") translateModel(ModelicaTest.Utilities.TestExamplesCalculator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestExamplesCalculator") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001717/0.001717, allocations: 174.2 kB / 16.07 MB, free: 5.598 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.62/1.62, allocations: 205.6 MB / 222.4 MB, free: 8.934 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009104/0.0009104, allocations: 90.75 kB / 270.8 MB, free: 8.117 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4548/0.4548, allocations: 43.68 MB / 362.7 MB, free: 52.17 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003473/0.0003473, allocations: 12 kB / 432.3 MB, free: 5.016 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1448/0.1452, allocations: 58.84 MB / 491.1 MB, free: 10.05 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.0006734/0.1459, allocations: 224.4 kB / 491.4 MB, free: 9.828 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.003481/0.1494, allocations: 2.936 MB / 494.3 MB, free: 6.652 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.274e-05/0.1494, allocations: 3.938 kB / 494.3 MB, free: 6.648 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.918e-05/0.1495, allocations: 0 / 494.3 MB, free: 6.648 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 3.071e-05/0.1495, allocations: 0 / 494.3 MB, free: 6.648 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001157/0.1507, allocations: 291.4 kB / 494.6 MB, free: 6.363 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 4.353e-05/0.1507, allocations: 7.938 kB / 494.6 MB, free: 6.355 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.414e-05/0.1508, allocations: 0 / 494.6 MB, free: 6.355 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.376e-05/0.1508, allocations: 4 kB / 494.6 MB, free: 6.352 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.04133/0.1922, allocations: 3.275 MB / 497.9 MB, free: 3.199 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.711e-05/0.1922, allocations: 0 / 497.9 MB, free: 3.199 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001008/0.1923, allocations: 4 kB / 497.9 MB, free: 3.195 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.016e-05/0.1923, allocations: 0 / 497.9 MB, free: 3.195 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 4.471e-05/0.1924, allocations: 29.7 kB / 497.9 MB, free: 3.16 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000103/0.1925, allocations: 4 kB / 497.9 MB, free: 3.156 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.618e-06/0.1925, allocations: 0 / 497.9 MB, free: 3.156 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.933e-06/0.1925, allocations: 0 / 497.9 MB, free: 3.156 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.42e-06/0.1925, allocations: 0 / 497.9 MB, free: 3.156 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0003111/0.1928, allocations: 319.6 kB / 498.2 MB, free: 2.797 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.054e-05/0.1929, allocations: 12.03 kB / 498.2 MB, free: 2.785 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002037/0.1931, allocations: 88.2 kB / 498.3 MB, free: 2.699 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001626/0.1933, allocations: 247.5 kB / 498.6 MB, free: 2.418 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.079e-05/0.1933, allocations: 150.9 kB / 498.7 MB, free: 2.27 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.489e-05/0.1934, allocations: 154.7 kB / 498.9 MB, free: 2.117 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8e-05/0.1935, allocations: 104.9 kB / 499 MB, free: 2.008 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.304e-05/0.1935, allocations: 83.28 kB / 499 MB, free: 1.926 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.447e-05/0.1936, allocations: 154.5 kB / 499.2 MB, free: 1.773 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.161e-05/0.1937, allocations: 150.6 kB / 499.3 MB, free: 1.625 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.873e-05/0.1937, allocations: 154.6 kB / 499.5 MB, free: 1.473 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002893/0.194, allocations: 445.9 kB / 499.9 MB, free: 0.9883 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.986e-05/0.1941, allocations: 173.1 kB / 0.4884 GB, free: 0.8086 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.516e-05/0.1942, allocations: 84.08 kB / 0.4885 GB, free: 0.7227 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.068e-05/0.1942, allocations: 75.28 kB / 0.4885 GB, free: 0.6484 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.948e-05/0.1943, allocations: 109.8 kB / 0.4886 GB, free: 0.5312 MB / 378.7 MB Notification: Performance of pre-optimization done (n=0): time 2.254e-06/0.1943, allocations: 4 kB / 0.4886 GB, free: 0.5273 MB / 378.7 MB Notification: Performance of matching and sorting (n=0): time 7.492e-05/0.1944, allocations: 25.7 kB / 0.4887 GB, free: 0.4961 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.392e-05/0.1945, allocations: 182 kB / 0.4888 GB, free: 300 kB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.81e-05/0.1946, allocations: 101.8 kB / 0.4889 GB, free: 188 kB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.416e-05/0.1946, allocations: 25.7 kB / 0.489 GB, free: 156 kB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.913e-05/0.1947, allocations: 80.14 kB / 0.489 GB, free: 72 kB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.853e-06/0.1947, allocations: 0 / 0.489 GB, free: 72 kB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.4e-07/0.1947, allocations: 0 / 0.489 GB, free: 72 kB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.2694/0.4641, allocations: 313.2 kB / 0.4893 GB, free: 44.36 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.307e-06/0.4641, allocations: 0 / 0.4893 GB, free: 44.36 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.768e-05/0.4642, allocations: 11.88 kB / 0.4893 GB, free: 44.34 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.254e-05/0.4642, allocations: 75.28 kB / 0.4894 GB, free: 44.27 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.575e-05/0.4643, allocations: 79.41 kB / 0.4895 GB, free: 44.19 MB / 378.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 7.431e-05/0.4643, allocations: 30.02 kB / 0.4895 GB, free: 44.16 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.264e-05/0.4644, allocations: 82.19 kB / 0.4896 GB, free: 44.09 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.141e-05/0.4644, allocations: 84.02 kB / 0.4897 GB, free: 44.01 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.956e-05/0.4645, allocations: 151.6 kB / 0.4898 GB, free: 43.86 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.603e-05/0.4645, allocations: 80.59 kB / 0.4899 GB, free: 43.79 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.69e-05/0.4645, allocations: 157.5 kB / 0.4901 GB, free: 43.64 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001061/0.4646, allocations: 83.94 kB / 0.4901 GB, free: 43.57 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.494e-05/0.4647, allocations: 77.42 kB / 0.4902 GB, free: 43.49 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.198e-05/0.4648, allocations: 261.7 kB / 0.4905 GB, free: 43.23 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.34e-05/0.4648, allocations: 103.8 kB / 0.4906 GB, free: 43.12 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.946e-05/0.4648, allocations: 118.4 kB / 0.4907 GB, free: 43.02 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.262e-05/0.4649, allocations: 177 kB / 0.4908 GB, free: 42.84 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-05/0.4649, allocations: 189.1 kB / 0.491 GB, free: 42.66 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.932e-05/0.465, allocations: 178.4 kB / 0.4912 GB, free: 42.48 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001537/0.4651, allocations: 399.5 kB / 0.4916 GB, free: 42.04 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.849e-05/0.4651, allocations: 107 kB / 0.4917 GB, free: 41.93 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.817e-05/0.4652, allocations: 111.5 kB / 0.4918 GB, free: 41.82 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.838e-05/0.4652, allocations: 177.6 kB / 0.4919 GB, free: 41.64 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.203e-05/0.4652, allocations: 179.8 kB / 0.4921 GB, free: 41.46 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.912e-05/0.4653, allocations: 182.6 kB / 0.4923 GB, free: 41.29 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.392e-05/0.4653, allocations: 185.7 kB / 0.4925 GB, free: 41.1 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.724e-05/0.4654, allocations: 306 kB / 0.4928 GB, free: 40.79 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.904e-05/0.4654, allocations: 183.2 kB / 0.4929 GB, free: 40.59 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.122e-05/0.4655, allocations: 188.5 kB / 0.4931 GB, free: 40.41 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.6e-05/0.4656, allocations: 107.4 kB / 0.4932 GB, free: 40.3 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.397e-05/0.4656, allocations: 184.5 kB / 0.4934 GB, free: 40.12 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.914e-05/0.4656, allocations: 106.8 kB / 0.4935 GB, free: 40.01 MB / 378.7 MB Notification: Performance of sorting global known variables: time 2.78e-05/0.4657, allocations: 77.28 kB / 0.4936 GB, free: 39.93 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4657, allocations: 0 / 0.4936 GB, free: 39.93 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002947/0.466, allocations: 1.406 kB / 0.4936 GB, free: 39.93 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.968e-05/0.4661, allocations: 186.5 kB / 0.4937 GB, free: 39.77 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 4.432e-05/0.4661, allocations: 1 kB / 0.4937 GB, free: 39.77 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.4662, allocations: 0 / 0.4937 GB, free: 39.77 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.873e-06/0.4662, allocations: 1.844 kB / 0.4937 GB, free: 39.77 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000307/0.4665, allocations: 0.5231 MB / 0.4943 GB, free: 39.25 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001889/0.4667, allocations: 151.2 kB / 0.4944 GB, free: 39.08 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001279/0.4668, allocations: 0.6718 MB / 0.4951 GB, free: 38.39 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 2.301e-05/0.4668, allocations: 0.7031 kB / 0.4951 GB, free: 38.39 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.998e-06/0.4668, allocations: 9.375 kB / 0.4951 GB, free: 38.38 MB / 378.7 MB Notification: Performance of SimCode: time 3e-07/0.4669, allocations: 0 / 0.4951 GB, free: 38.38 MB / 378.7 MB Notification: Performance of Templates: time 0.002192/0.4691, allocations: 284.1 kB / 0.4953 GB, free: 38.34 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestExamplesCalculator.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Utilities.TestExamplesCalculator.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestExamplesCalculator.sim & ./ModelicaTest_3.2.3_ModelicaTest.Utilities.TestExamplesCalculator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Utilities.TestExamplesCalculator.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Utilities.TestExamplesCalculator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestExamplesCalculator/TestExamplesCalculator.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestExamplesCalculator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches