Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_ModelicaTest.Math.TestScalarFunctions") translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00141/0.00141, allocations: 109.3 kB / 18.39 MB, free: 4.629 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.001533/0.001533, allocations: 184.1 kB / 19.33 MB, free: 3.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.473/1.473, allocations: 222.9 MB / 243 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2005/0.2005, allocations: 44.19 MB / 337.4 MB, free: 2.691 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001194/0.001194, allocations: 66.81 kB / 409.9 MB, free: 26.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1081/0.1093, allocations: 60.83 MB / 470.7 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001684/0.111, allocations: 482.9 kB / 471.2 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001773/0.1128, allocations: 1.391 MB / 472.6 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.15e-05/0.1128, allocations: 0 / 472.6 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.377e-05/0.1129, allocations: 3.938 kB / 472.6 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.33e-06/0.1129, allocations: 0 / 472.6 MB, free: 11.77 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Math.mo:4:3-36:22:writable] Warning: Pure function 'ModelicaTest.Math.ScalarFunctions' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0005177/0.1134, allocations: 110.3 kB / 472.7 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.147e-05/0.1135, allocations: 0 / 472.7 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.347e-05/0.1135, allocations: 4 kB / 472.7 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.467e-05/0.1135, allocations: 0 / 472.7 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.706e-05/0.1136, allocations: 4 kB / 472.7 MB, free: 11.65 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.715e-06/0.1136, allocations: 0 / 472.7 MB, free: 11.65 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003023/0.1139, allocations: 71.86 kB / 472.8 MB, free: 11.58 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.879e-06/0.1139, allocations: 3.938 kB / 472.8 MB, free: 11.58 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.903e-05/0.1139, allocations: 0 / 472.8 MB, free: 11.58 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.212e-05/0.114, allocations: 27.97 kB / 472.8 MB, free: 11.55 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.114, allocations: 0 / 472.8 MB, free: 11.55 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.114, allocations: 4 kB / 472.8 MB, free: 11.55 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.29e-06/0.1141, allocations: 0 / 472.8 MB, free: 11.55 MB / 350.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.0003299/0.1144, allocations: 341.3 kB / 473.1 MB, free: 11.16 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.875e-05/0.1144, allocations: 8.031 kB / 473.1 MB, free: 11.15 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.918e-05/0.1145, allocations: 0.9375 kB / 473.1 MB, free: 11.15 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.872e-05/0.1146, allocations: 160.4 kB / 473.3 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.173e-05/0.1146, allocations: 4.375 kB / 473.3 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.779e-06/0.1146, allocations: 384 / 473.3 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.84e-05/0.1147, allocations: 37.94 kB / 473.3 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.133e-06/0.1147, allocations: 4 kB / 473.3 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.451e-05/0.1147, allocations: 8 kB / 473.3 MB, free: 10.9 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-06/0.1148, allocations: 0 / 473.3 MB, free: 10.9 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.608e-05/0.1148, allocations: 0 / 473.3 MB, free: 10.9 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001253/0.1149, allocations: 141.7 kB / 473.5 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.746e-05/0.115, allocations: 26.58 kB / 473.5 MB, free: 10.68 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.644e-05/0.115, allocations: 4.859 kB / 473.5 MB, free: 10.67 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.455e-06/0.115, allocations: 4 kB / 473.5 MB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.482e-05/0.1151, allocations: 72.27 kB / 473.6 MB, free: 10.58 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.082e-06/0.1151, allocations: 3.938 kB / 473.6 MB, free: 10.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001693/0.1152, allocations: 59.39 kB / 473.6 MB, free: 10.5 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.153e-05/0.1153, allocations: 85.09 kB / 473.7 MB, free: 10.4 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.094e-05/0.1154, allocations: 93.8 kB / 473.8 MB, free: 10.3 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.397e-05/0.1154, allocations: 25.7 kB / 473.8 MB, free: 10.27 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.565e-05/0.1154, allocations: 80.14 kB / 473.9 MB, free: 10.19 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.167e-05/0.1155, allocations: 4.125 kB / 473.9 MB, free: 10.18 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.909e-05/0.1155, allocations: 17.72 kB / 473.9 MB, free: 10.16 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001293/0.1156, allocations: 310.8 kB / 474.2 MB, free: 9.848 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.021e-05/0.1156, allocations: 0 / 474.2 MB, free: 9.848 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.38e-06/0.1157, allocations: 0 / 474.2 MB, free: 9.848 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.062e-05/0.1157, allocations: 68.14 kB / 474.3 MB, free: 9.766 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.724e-06/0.1157, allocations: 0 / 474.3 MB, free: 9.766 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.694e-05/0.1158, allocations: 71.45 kB / 474.4 MB, free: 9.684 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.29e-05/0.1158, allocations: 33.64 kB / 474.4 MB, free: 9.645 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.1159, allocations: 4 kB / 474.4 MB, free: 9.641 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.225e-05/0.1159, allocations: 0 / 474.4 MB, free: 9.641 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.032e-06/0.1159, allocations: 0 / 474.4 MB, free: 9.641 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.569e-06/0.1159, allocations: 0 / 474.4 MB, free: 9.641 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.568e-05/0.1159, allocations: 0 / 474.4 MB, free: 9.641 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.041e-06/0.1159, allocations: 0 / 474.4 MB, free: 9.641 MB / 350.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 9.392e-05/0.116, allocations: 139.5 kB / 474.6 MB, free: 9.488 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.037e-06/0.116, allocations: 3.938 kB / 474.6 MB, free: 9.484 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.254e-05/0.116, allocations: 11.11 kB / 474.6 MB, free: 9.473 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-06/0.1161, allocations: 0 / 474.6 MB, free: 9.473 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.798e-06/0.1161, allocations: 0 / 474.6 MB, free: 9.473 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-06/0.1161, allocations: 0 / 474.6 MB, free: 9.473 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.57e-05/0.1162, allocations: 149.7 kB / 474.7 MB, free: 9.277 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.02e-07/0.1162, allocations: 0 / 474.7 MB, free: 9.277 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.083e-05/0.1162, allocations: 0 / 474.7 MB, free: 9.277 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.025e-06/0.1162, allocations: 7.875 kB / 474.7 MB, free: 9.27 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.813e-06/0.1162, allocations: 0 / 474.7 MB, free: 9.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.52e-07/0.1162, allocations: 0 / 474.7 MB, free: 9.27 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.1162, allocations: 4 kB / 474.7 MB, free: 9.266 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.486e-05/0.1163, allocations: 98.73 kB / 474.8 MB, free: 9.145 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.367e-05/0.1164, allocations: 77.11 kB / 474.9 MB, free: 9.051 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.294e-05/0.1164, allocations: 7.938 kB / 474.9 MB, free: 9.043 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.205e-06/0.1164, allocations: 0 / 474.9 MB, free: 9.043 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.64e-05/0.1164, allocations: 0 / 474.9 MB, free: 9.043 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.806e-06/0.1164, allocations: 3.938 kB / 474.9 MB, free: 9.039 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.753e-05/0.1165, allocations: 79.31 kB / 475 MB, free: 8.961 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1165, allocations: 0 / 475 MB, free: 8.961 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0001914/0.1167, allocations: 12 kB / 475 MB, free: 8.949 MB / 350.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.00027/0.1169, allocations: 136.4 kB / 475.1 MB, free: 8.812 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001077/0.1171, allocations: 63.34 kB / 475.2 MB, free: 8.738 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.1171, allocations: 0 / 475.2 MB, free: 8.738 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.898e-05/0.1171, allocations: 59.47 kB / 475.3 MB, free: 8.668 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001207/0.1172, allocations: 0 / 475.3 MB, free: 8.668 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000189/0.1174, allocations: 76.92 kB / 475.3 MB, free: 8.566 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002702/0.1177, allocations: 0.6729 MB / 476 MB, free: 7.867 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.01e-06/0.1177, allocations: 0 / 476 MB, free: 7.867 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.152e-05/0.1177, allocations: 7.438 kB / 476 MB, free: 7.859 MB / 350.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1177, allocations: 0 / 476 MB, free: 7.859 MB / 350.1 MB Notification: Performance of Templates: time 0.002688/0.1204, allocations: 0.5279 MB / 476.5 MB, free: 7.332 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestScalarFunctions/TestScalarFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches