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.001045/0.001045, allocations: 179.5 kB / 16.41 MB, free: 5.703 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.306/1.306, allocations: 205.4 MB / 222.5 MB, free: 9.109 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.0007504/0.0007506, allocations: 97.89 kB / 270.9 MB, free: 8.348 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.2946/0.2946, allocations: 43.55 MB / 362.7 MB, free: 51.96 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003548/0.000355, allocations: 16 kB / 431.4 MB, free: 5.91 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09795/0.09833, allocations: 58.84 MB / 490.2 MB, free: 10.99 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.0004756/0.09884, allocations: 216.5 kB / 490.4 MB, free: 10.78 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002377/0.1012, allocations: 1.946 MB / 492.4 MB, free: 8.812 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.479e-05/0.1013, allocations: 0 / 492.4 MB, free: 8.812 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 8.556e-06/0.1013, allocations: 0 / 492.4 MB, free: 8.812 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 1.618e-05/0.1013, allocations: 4 kB / 492.4 MB, free: 8.809 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008516/0.1022, allocations: 279.3 kB / 492.7 MB, free: 8.535 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.142e-05/0.1022, allocations: 4 kB / 492.7 MB, free: 8.531 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.904e-05/0.1023, allocations: 3.984 kB / 492.7 MB, free: 8.527 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.271e-05/0.1023, allocations: 0 / 492.7 MB, free: 8.527 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003331/0.1056, allocations: 2.427 MB / 495.1 MB, free: 6.098 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 9.507e-06/0.1056, allocations: 0 / 495.1 MB, free: 6.098 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.126e-05/0.1057, allocations: 4 kB / 495.1 MB, free: 6.094 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 6.973e-06/0.1057, allocations: 3.938 kB / 495.1 MB, free: 6.09 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.359e-05/0.1058, allocations: 25.7 kB / 495.1 MB, free: 6.059 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 5.831e-05/0.1058, allocations: 8 kB / 495.1 MB, free: 6.051 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.1058, allocations: 0 / 495.1 MB, free: 6.051 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1058, allocations: 0 / 495.1 MB, free: 6.051 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.539e-06/0.1059, allocations: 4 kB / 495.1 MB, free: 6.047 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.0002761/0.1061, allocations: 315.4 kB / 495.5 MB, free: 5.691 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.815e-05/0.1062, allocations: 8.031 kB / 495.5 MB, free: 5.684 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001888/0.1064, allocations: 87.27 kB / 495.5 MB, free: 5.598 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001312/0.1065, allocations: 246.2 kB / 495.8 MB, free: 5.316 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.903e-05/0.1066, allocations: 150.6 kB / 495.9 MB, free: 5.168 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.139e-05/0.1066, allocations: 158.5 kB / 496.1 MB, free: 5.012 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.498e-05/0.1067, allocations: 105 kB / 496.2 MB, free: 4.902 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.241e-05/0.1067, allocations: 75.28 kB / 496.3 MB, free: 4.828 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.304e-05/0.1068, allocations: 158.5 kB / 496.4 MB, free: 4.672 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.874e-05/0.1068, allocations: 150.6 kB / 496.6 MB, free: 4.523 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.087e-05/0.1069, allocations: 150.6 kB / 496.7 MB, free: 4.375 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002476/0.1071, allocations: 449.9 kB / 497.2 MB, free: 3.887 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.876e-05/0.1072, allocations: 165.1 kB / 497.3 MB, free: 3.715 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.888e-05/0.1072, allocations: 84.14 kB / 497.4 MB, free: 3.629 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.425e-05/0.1073, allocations: 83.17 kB / 497.5 MB, free: 3.547 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.055e-05/0.1073, allocations: 109.8 kB / 497.6 MB, free: 3.43 MB / 378.7 MB Notification: Performance of pre-optimization done (n=0): time 1.072e-06/0.1073, allocations: 0 / 497.6 MB, free: 3.43 MB / 378.7 MB Notification: Performance of matching and sorting (n=0): time 6.43e-05/0.1074, allocations: 25.7 kB / 497.6 MB, free: 3.398 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.451e-05/0.1075, allocations: 190 kB / 497.8 MB, free: 3.188 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.277e-05/0.1075, allocations: 89.86 kB / 497.9 MB, free: 3.09 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.191e-05/0.1076, allocations: 29.69 kB / 497.9 MB, free: 3.055 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.505e-05/0.1076, allocations: 84.2 kB / 498 MB, free: 2.969 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.333e-06/0.1076, allocations: 4 kB / 498 MB, free: 2.965 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.1e-07/0.1076, allocations: 0 / 498 MB, free: 2.965 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.617e-05/0.1077, allocations: 314.8 kB / 498.3 MB, free: 2.648 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.116e-06/0.1077, allocations: 0 / 498.3 MB, free: 2.648 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.346e-05/0.1078, allocations: 13.66 kB / 498.3 MB, free: 2.629 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.815e-05/0.1078, allocations: 75.28 kB / 498.4 MB, free: 2.555 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.19e-05/0.1078, allocations: 75.28 kB / 498.5 MB, free: 2.48 MB / 378.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.052e-05/0.1079, allocations: 37.73 kB / 498.5 MB, free: 2.438 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.581e-05/0.1079, allocations: 83.23 kB / 498.6 MB, free: 2.355 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.509e-05/0.108, allocations: 83.22 kB / 498.7 MB, free: 2.273 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.127e-05/0.108, allocations: 154.5 kB / 498.8 MB, free: 2.121 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.161e-05/0.1081, allocations: 79.33 kB / 498.9 MB, free: 2.043 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.464e-05/0.1081, allocations: 154.5 kB / 499 MB, free: 1.891 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.086e-05/0.1082, allocations: 83.28 kB / 499.1 MB, free: 1.809 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.449e-05/0.1082, allocations: 79.22 kB / 499.2 MB, free: 1.73 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 0.0001125/0.1084, allocations: 268.4 kB / 499.5 MB, free: 1.457 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.147e-05/0.1084, allocations: 101 kB / 499.6 MB, free: 1.352 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.31e-05/0.1085, allocations: 112 kB / 499.7 MB, free: 1.234 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.16e-05/0.1085, allocations: 184.2 kB / 499.9 MB, free: 1.047 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.782e-05/0.1086, allocations: 180.3 kB / 0.4883 GB, free: 0.8633 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.88e-05/0.1087, allocations: 180.2 kB / 0.4885 GB, free: 0.6797 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002102/0.1089, allocations: 401.2 kB / 0.4889 GB, free: 236 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.423e-05/0.1089, allocations: 105 kB / 0.489 GB, free: 124 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.823e-05/0.109, allocations: 104.9 kB / 0.4891 GB, free: 12 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1661/0.275, allocations: 177 kB / 0.4892 GB, free: 44.21 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.522e-05/0.2751, allocations: 182.9 kB / 0.4894 GB, free: 44.04 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.902e-05/0.2751, allocations: 185.9 kB / 0.4896 GB, free: 43.86 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.919e-05/0.2751, allocations: 179.7 kB / 0.4898 GB, free: 43.68 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.67e-05/0.2752, allocations: 310.8 kB / 0.4901 GB, free: 43.37 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.609e-05/0.2753, allocations: 178.8 kB / 0.4902 GB, free: 43.17 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.392e-05/0.2753, allocations: 186.1 kB / 0.4904 GB, free: 42.99 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.54e-05/0.2754, allocations: 105 kB / 0.4905 GB, free: 42.88 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.064e-05/0.2754, allocations: 185 kB / 0.4907 GB, free: 42.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.336e-05/0.2754, allocations: 109.9 kB / 0.4908 GB, free: 42.6 MB / 378.7 MB Notification: Performance of sorting global known variables: time 2.91e-05/0.2755, allocations: 78.06 kB / 0.4909 GB, free: 42.52 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2755, allocations: 3.719 kB / 0.4909 GB, free: 42.52 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000247/0.2757, allocations: 1.344 kB / 0.4909 GB, free: 42.52 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 9.405e-05/0.2758, allocations: 171.8 kB / 0.491 GB, free: 42.36 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 4.9e-05/0.2759, allocations: 4.812 kB / 0.491 GB, free: 42.36 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.2759, allocations: 1.031 kB / 0.491 GB, free: 42.36 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.513e-06/0.2759, allocations: 0 / 0.491 GB, free: 42.36 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002682/0.2762, allocations: 0.5232 MB / 0.4915 GB, free: 41.84 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001422/0.2763, allocations: 177.6 kB / 0.4917 GB, free: 41.65 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.666e-05/0.2764, allocations: 0.6714 MB / 0.4924 GB, free: 40.95 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.634e-06/0.2764, allocations: 9.062 kB / 0.4924 GB, free: 40.95 MB / 378.7 MB Notification: Performance of SimCode: time 2.7e-07/0.2764, allocations: 0 / 0.4924 GB, free: 40.95 MB / 378.7 MB Notification: Performance of Templates: time 0.001273/0.2777, allocations: 355.8 kB / 0.4927 GB, free: 40.95 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