Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions") translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001517/0.001517, allocations: 112.6 kB / 17.08 MB, free: 6.02 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001979/0.001979, allocations: 199 kB / 18.01 MB, free: 5.094 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.308/1.308, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2034/0.2034, allocations: 43.53 MB / 314.8 MB, free: 464 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001641/0.001641, allocations: 75.83 kB / 442.5 MB, free: 5.684 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1049/0.1066, allocations: 57.79 MB / 0.4885 GB, free: 11.82 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001742/0.1084, allocations: 497.8 kB / 0.489 GB, free: 11.34 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002019/0.1104, allocations: 1.425 MB / 0.4904 GB, free: 9.895 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.586e-05/0.1104, allocations: 0 / 0.4904 GB, free: 9.895 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.545e-05/0.1105, allocations: 0 / 0.4904 GB, free: 9.895 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.901e-06/0.1105, allocations: 0 / 0.4904 GB, free: 9.895 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005862/0.1111, allocations: 111.6 kB / 0.4905 GB, free: 9.785 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.365e-05/0.1112, allocations: 8 kB / 0.4905 GB, free: 9.777 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.416e-05/0.1112, allocations: 0 / 0.4905 GB, free: 9.777 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.528e-05/0.1112, allocations: 0 / 0.4905 GB, free: 9.777 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.268e-05/0.1113, allocations: 0 / 0.4905 GB, free: 9.777 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.506e-06/0.1113, allocations: 0 / 0.4905 GB, free: 9.777 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003477/0.1116, allocations: 75.86 kB / 0.4906 GB, free: 9.703 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.588e-06/0.1117, allocations: 0 / 0.4906 GB, free: 9.703 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.225e-05/0.1117, allocations: 3.984 kB / 0.4906 GB, free: 9.699 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001057/0.1118, allocations: 23.92 kB / 0.4906 GB, free: 9.676 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.1118, allocations: 0 / 0.4906 GB, free: 9.676 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1118, allocations: 0 / 0.4906 GB, free: 9.676 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.02e-06/0.1118, allocations: 0 / 0.4906 GB, free: 9.676 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003698/0.1122, allocations: 353.3 kB / 0.4909 GB, free: 9.277 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.934e-05/0.1123, allocations: 15.83 kB / 0.491 GB, free: 9.262 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.113e-05/0.1123, allocations: 0.9375 kB / 0.491 GB, free: 9.262 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001234/0.1124, allocations: 168.4 kB / 0.4911 GB, free: 9.059 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.529e-05/0.1125, allocations: 384 / 0.4911 GB, free: 9.059 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.117e-06/0.1125, allocations: 384 / 0.4911 GB, free: 9.059 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.562e-05/0.1126, allocations: 34.02 kB / 0.4912 GB, free: 9.02 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.454e-06/0.1126, allocations: 0 / 0.4912 GB, free: 9.02 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.376e-06/0.1126, allocations: 0 / 0.4912 GB, free: 9.02 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.949e-06/0.1126, allocations: 4 kB / 0.4912 GB, free: 9.016 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.055e-05/0.1126, allocations: 3.938 kB / 0.4912 GB, free: 9.012 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001456/0.1128, allocations: 153.6 kB / 0.4913 GB, free: 8.812 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.772e-05/0.1128, allocations: 18.56 kB / 0.4913 GB, free: 8.785 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.489e-05/0.1128, allocations: 4.859 kB / 0.4913 GB, free: 8.777 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.917e-06/0.1129, allocations: 0 / 0.4913 GB, free: 8.777 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.977e-05/0.1129, allocations: 64.27 kB / 0.4914 GB, free: 8.699 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 9.42e-07/0.1129, allocations: 4 kB / 0.4914 GB, free: 8.695 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001829/0.1131, allocations: 71.33 kB / 0.4915 GB, free: 8.613 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.996e-05/0.1132, allocations: 81.09 kB / 0.4915 GB, free: 8.516 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.149e-05/0.1132, allocations: 89.86 kB / 0.4916 GB, free: 8.418 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.195e-05/0.1132, allocations: 25.7 kB / 0.4916 GB, free: 8.387 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.472e-05/0.1133, allocations: 80.14 kB / 0.4917 GB, free: 8.305 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.075e-05/0.1133, allocations: 0 / 0.4917 GB, free: 8.305 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.064e-05/0.1133, allocations: 13.72 kB / 0.4917 GB, free: 8.285 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001164/0.1135, allocations: 315 kB / 0.492 GB, free: 7.969 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.092e-05/0.1135, allocations: 0 / 0.492 GB, free: 7.969 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.785e-06/0.1135, allocations: 4 kB / 0.492 GB, free: 7.965 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.148e-05/0.1136, allocations: 60.27 kB / 0.4921 GB, free: 7.891 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.36e-06/0.1136, allocations: 7.922 kB / 0.4921 GB, free: 7.883 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.822e-05/0.1136, allocations: 63.34 kB / 0.4922 GB, free: 7.809 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.42e-05/0.1137, allocations: 37.64 kB / 0.4922 GB, free: 7.766 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.738e-06/0.1137, allocations: 96 / 0.4922 GB, free: 7.766 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.333e-05/0.1137, allocations: 4 kB / 0.4922 GB, free: 7.762 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.102e-06/0.1137, allocations: 0 / 0.4922 GB, free: 7.762 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.531e-06/0.1137, allocations: 0 / 0.4922 GB, free: 7.762 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.796e-05/0.1138, allocations: 3.938 kB / 0.4922 GB, free: 7.758 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.394e-06/0.1138, allocations: 0 / 0.4922 GB, free: 7.758 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 0.0001059/0.1139, allocations: 147.5 kB / 0.4924 GB, free: 7.598 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.019e-05/0.1139, allocations: 3.938 kB / 0.4924 GB, free: 7.594 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.324e-05/0.1139, allocations: 3.125 kB / 0.4924 GB, free: 7.586 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-06/0.1139, allocations: 0 / 0.4924 GB, free: 7.586 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.541e-06/0.1139, allocations: 12 kB / 0.4924 GB, free: 7.574 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.1139, allocations: 0 / 0.4924 GB, free: 7.574 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.014e-05/0.114, allocations: 149.6 kB / 0.4925 GB, free: 7.379 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.51e-07/0.114, allocations: 0 / 0.4925 GB, free: 7.379 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.72e-07/0.114, allocations: 0 / 0.4925 GB, free: 7.379 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.835e-06/0.1141, allocations: 3.938 kB / 0.4925 GB, free: 7.375 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.065e-06/0.1141, allocations: 4 kB / 0.4925 GB, free: 7.371 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.1141, allocations: 0 / 0.4925 GB, free: 7.371 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.1141, allocations: 0 / 0.4925 GB, free: 7.371 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001051/0.1142, allocations: 98.77 kB / 0.4926 GB, free: 7.25 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.598e-05/0.1142, allocations: 77.11 kB / 0.4927 GB, free: 7.156 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.558e-05/0.1143, allocations: 3.938 kB / 0.4927 GB, free: 7.152 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.033e-05/0.1143, allocations: 0 / 0.4927 GB, free: 7.152 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.195e-05/0.1143, allocations: 0 / 0.4927 GB, free: 7.152 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.4e-06/0.1143, allocations: 4 kB / 0.4927 GB, free: 7.148 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.944e-05/0.1143, allocations: 75.28 kB / 0.4928 GB, free: 7.074 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1143, allocations: 0 / 0.4928 GB, free: 7.074 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002196/0.1146, allocations: 8.031 kB / 0.4928 GB, free: 7.066 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 0.0002814/0.1149, allocations: 137.8 kB / 0.4929 GB, free: 6.922 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 9.328e-05/0.115, allocations: 59.34 kB / 0.493 GB, free: 6.852 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.578e-06/0.115, allocations: 0 / 0.493 GB, free: 6.852 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.981e-05/0.115, allocations: 59.34 kB / 0.493 GB, free: 6.781 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001276/0.1151, allocations: 11.98 kB / 0.493 GB, free: 6.77 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001936/0.1153, allocations: 110.8 kB / 0.4931 GB, free: 6.629 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002547/0.1156, allocations: 0.6729 MB / 0.4938 GB, free: 5.93 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.154e-05/0.1156, allocations: 7.438 kB / 0.4938 GB, free: 5.922 MB / 382.1 MB Notification: Performance of SimCode: time 3e-07/0.1156, allocations: 0 / 0.4938 GB, free: 5.922 MB / 382.1 MB Notification: Performance of Templates: time 0.001919/0.1176, allocations: 0.5541 MB / 0.4943 GB, free: 5.367 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions.sim & ./ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/TestScalarFunctions/TestScalarFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches