Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestExamplesCalculator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/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_cpp_ModelicaTest.Utilities.TestExamplesCalculator") translateModel(ModelicaTest.Utilities.TestExamplesCalculator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestExamplesCalculator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000864/0.0008639, allocations: 175 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.377/1.377, allocations: 205.4 MB / 222.9 MB, free: 9.027 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007135/0.0007136, allocations: 92.95 kB / 271.2 MB, free: 8.238 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3204/0.3204, allocations: 43.57 MB / 363.1 MB, free: 52.16 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003604/0.0003604, allocations: 12 kB / 432 MB, free: 5.84 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.1009, allocations: 58.85 MB / 490.8 MB, free: 10.91 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.0004798/0.1014, allocations: 212.5 kB / 491 MB, free: 10.7 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002335/0.1038, allocations: 1.95 MB / 493 MB, free: 8.734 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.441e-05/0.1038, allocations: 0 / 493 MB, free: 8.734 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.087e-05/0.1038, allocations: 0 / 493 MB, free: 8.734 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 1.469e-05/0.1038, allocations: 0 / 493 MB, free: 8.734 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007477/0.1046, allocations: 287.3 kB / 493.2 MB, free: 8.453 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.101e-05/0.1046, allocations: 4 kB / 493.3 MB, free: 8.449 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.638e-05/0.1047, allocations: 0 / 493.3 MB, free: 8.449 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.697e-05/0.1047, allocations: 7.984 kB / 493.3 MB, free: 8.441 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01273/0.1175, allocations: 2.767 MB / 496 MB, free: 5.73 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.331e-05/0.1175, allocations: 0 / 496 MB, free: 5.73 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.054e-05/0.1176, allocations: 11.98 kB / 496 MB, free: 5.719 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 8.857e-06/0.1176, allocations: 0 / 496 MB, free: 5.719 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.007e-05/0.1176, allocations: 29.69 kB / 496.1 MB, free: 5.684 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 5.84e-05/0.1177, allocations: 4 kB / 496.1 MB, free: 5.68 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.1177, allocations: 0 / 496.1 MB, free: 5.68 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.1177, allocations: 0 / 496.1 MB, free: 5.68 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.817e-06/0.1177, allocations: 0 / 496.1 MB, free: 5.68 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.0002303/0.118, allocations: 319.6 kB / 496.4 MB, free: 5.32 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.814e-05/0.118, allocations: 12.02 kB / 496.4 MB, free: 5.309 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001685/0.1182, allocations: 88.22 kB / 496.5 MB, free: 5.223 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001106/0.1183, allocations: 239.6 kB / 496.7 MB, free: 4.949 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.352e-05/0.1183, allocations: 154.9 kB / 496.9 MB, free: 4.797 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.653e-05/0.1184, allocations: 154.7 kB / 497 MB, free: 4.645 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.222e-05/0.1185, allocations: 108.9 kB / 497.1 MB, free: 4.531 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.179e-05/0.1185, allocations: 75.28 kB / 497.2 MB, free: 4.457 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.996e-05/0.1185, allocations: 154.6 kB / 497.4 MB, free: 4.305 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.9e-05/0.1186, allocations: 154.6 kB / 497.5 MB, free: 4.152 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.535e-05/0.1186, allocations: 150.6 kB / 497.6 MB, free: 4.004 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002262/0.1189, allocations: 438 kB / 498.1 MB, free: 3.527 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.298e-05/0.1189, allocations: 181.1 kB / 498.3 MB, free: 3.34 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.137e-05/0.119, allocations: 84.08 kB / 498.3 MB, free: 3.254 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.075e-05/0.119, allocations: 75.28 kB / 498.4 MB, free: 3.18 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.107e-05/0.1191, allocations: 109.8 kB / 498.5 MB, free: 3.062 MB / 378.7 MB Notification: Performance of pre-optimization done (n=0): time 8.92e-07/0.1191, allocations: 0 / 498.5 MB, free: 3.062 MB / 378.7 MB Notification: Performance of matching and sorting (n=0): time 6.256e-05/0.1191, allocations: 29.7 kB / 498.5 MB, free: 3.027 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.729e-05/0.1192, allocations: 182.1 kB / 498.7 MB, free: 2.824 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.644e-05/0.1193, allocations: 89.86 kB / 498.8 MB, free: 2.727 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.205e-05/0.1193, allocations: 25.7 kB / 498.8 MB, free: 2.695 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.027e-05/0.1193, allocations: 88.08 kB / 498.9 MB, free: 2.605 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.535e-06/0.1193, allocations: 4 kB / 498.9 MB, free: 2.602 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.31e-07/0.1194, allocations: 3.938 kB / 498.9 MB, free: 2.598 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.331e-05/0.1194, allocations: 314.8 kB / 499.2 MB, free: 2.281 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.605e-06/0.1195, allocations: 4.125 kB / 499.2 MB, free: 2.277 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.996e-05/0.1195, allocations: 13.7 kB / 499.3 MB, free: 2.258 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.064e-05/0.1195, allocations: 79.28 kB / 499.3 MB, free: 2.18 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.38e-05/0.1195, allocations: 75.28 kB / 499.4 MB, free: 2.105 MB / 378.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 4.645e-05/0.1196, allocations: 29.64 kB / 499.4 MB, free: 2.07 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.94e-05/0.1196, allocations: 83.28 kB / 499.5 MB, free: 1.988 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.54e-05/0.1196, allocations: 79.22 kB / 499.6 MB, free: 1.91 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.613e-05/0.1197, allocations: 154.6 kB / 499.7 MB, free: 1.758 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.624e-05/0.1197, allocations: 87.33 kB / 499.8 MB, free: 1.672 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.432e-05/0.1198, allocations: 162.5 kB / 500 MB, free: 1.512 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.156e-05/0.1199, allocations: 79.27 kB / 0.4883 GB, free: 1.434 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.202e-05/0.1199, allocations: 79.22 kB / 0.4884 GB, free: 1.355 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.582e-05/0.12, allocations: 264.4 kB / 0.4887 GB, free: 1.086 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.725e-05/0.1201, allocations: 104.9 kB / 0.4888 GB, free: 0.9766 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.004e-05/0.1201, allocations: 112 kB / 0.4889 GB, free: 0.8594 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.051e-05/0.1202, allocations: 184.2 kB / 0.4891 GB, free: 0.6719 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.823e-05/0.1202, allocations: 176.3 kB / 0.4892 GB, free: 0.4922 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-05/0.1203, allocations: 180.2 kB / 0.4894 GB, free: 316 kB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.171/0.2913, allocations: 403.9 kB / 0.4898 GB, free: 44.24 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.654e-05/0.2913, allocations: 105.4 kB / 0.4899 GB, free: 44.13 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.725e-05/0.2913, allocations: 102.4 kB / 0.49 GB, free: 44.03 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.648e-05/0.2914, allocations: 179.6 kB / 0.4901 GB, free: 43.85 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.801e-05/0.2914, allocations: 182.8 kB / 0.4903 GB, free: 43.67 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.732e-05/0.2914, allocations: 181.8 kB / 0.4905 GB, free: 43.49 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.437e-05/0.2915, allocations: 181.1 kB / 0.4907 GB, free: 43.31 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.724e-05/0.2916, allocations: 308.1 kB / 0.491 GB, free: 43 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.58e-05/0.2916, allocations: 184.2 kB / 0.4911 GB, free: 42.8 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.84e-05/0.2916, allocations: 185.6 kB / 0.4913 GB, free: 42.62 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.243e-05/0.2917, allocations: 102 kB / 0.4914 GB, free: 42.52 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.31e-05/0.2918, allocations: 181.9 kB / 0.4916 GB, free: 42.34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.912e-05/0.2918, allocations: 109.3 kB / 0.4917 GB, free: 42.23 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.577e-05/0.2918, allocations: 78.91 kB / 0.4918 GB, free: 42.16 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.2918, allocations: 0 / 0.4918 GB, free: 42.16 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002732/0.2921, allocations: 1.594 kB / 0.4918 GB, free: 42.16 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.39e-05/0.2922, allocations: 168.8 kB / 0.4919 GB, free: 42 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 4.37e-05/0.2923, allocations: 3.219 kB / 0.4919 GB, free: 42 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.2923, allocations: 4.281 kB / 0.4919 GB, free: 42 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 2.465e-06/0.2923, allocations: 4.906 kB / 0.4919 GB, free: 42 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003006/0.2926, allocations: 0.5214 MB / 0.4925 GB, free: 41.48 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001625/0.2928, allocations: 184.5 kB / 0.4926 GB, free: 41.28 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.503e-05/0.2929, allocations: 0.6708 MB / 0.4933 GB, free: 40.59 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.995e-06/0.2929, allocations: 15.09 kB / 0.4933 GB, free: 40.58 MB / 378.7 MB Notification: Performance of SimCode: time 3.61e-07/0.2929, allocations: 0 / 0.4933 GB, free: 40.58 MB / 378.7 MB Notification: Performance of Templates: time 0.00137/0.2943, allocations: 347.8 kB / 0.4936 GB, free: 40.58 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestExamplesCalculator.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestExamplesCalculator.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestExamplesCalculator.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestExamplesCalculator --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestExamplesCalculator.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest.Utilities.TestExamplesCalculator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches