Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions") translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001586/0.001586, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001921/0.001921, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.306/1.306, allocations: 227.4 MB / 247.5 MB, free: 10.35 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2016/0.2016, allocations: 46.1 MB / 344.9 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00131/0.00131, allocations: 71.88 kB / 419 MB, free: 19.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1058, allocations: 62.45 MB / 481.4 MB, free: 4.539 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001667/0.1075, allocations: 490.9 kB / 481.9 MB, free: 4.059 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002116/0.1096, allocations: 1.636 MB / 483.6 MB, free: 2.406 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.071e-05/0.1097, allocations: 4 kB / 483.6 MB, free: 2.402 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.429e-05/0.1097, allocations: 0 / 483.6 MB, free: 2.402 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.379e-06/0.1097, allocations: 0 / 483.6 MB, free: 2.402 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.0006941/0.1104, allocations: 167.3 kB / 483.7 MB, free: 2.242 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.051e-05/0.1105, allocations: 0 / 483.7 MB, free: 2.242 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.179e-05/0.1106, allocations: 8 kB / 483.7 MB, free: 2.234 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.488e-05/0.1106, allocations: 3.984 kB / 483.7 MB, free: 2.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.813e-05/0.1106, allocations: 11.98 kB / 483.8 MB, free: 2.219 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.324e-06/0.1106, allocations: 0 / 483.8 MB, free: 2.219 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003773/0.111, allocations: 103.9 kB / 483.9 MB, free: 2.117 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.074e-05/0.111, allocations: 7.938 kB / 483.9 MB, free: 2.109 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.654e-05/0.1111, allocations: 3.984 kB / 483.9 MB, free: 2.105 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001384/0.1112, allocations: 39.95 kB / 483.9 MB, free: 2.066 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.1112, allocations: 0 / 483.9 MB, free: 2.066 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.1112, allocations: 4 kB / 483.9 MB, free: 2.062 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.481e-06/0.1112, allocations: 0 / 483.9 MB, free: 2.062 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.0003502/0.1116, allocations: 349.3 kB / 484.3 MB, free: 1.668 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.606e-05/0.1116, allocations: 12.03 kB / 484.3 MB, free: 1.656 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.057e-05/0.1117, allocations: 0.9375 kB / 484.3 MB, free: 1.656 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.76e-05/0.1118, allocations: 164.3 kB / 484.4 MB, free: 1.457 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.959e-06/0.1118, allocations: 384 / 484.4 MB, free: 1.457 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.733e-06/0.1118, allocations: 384 / 484.4 MB, free: 1.457 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.832e-05/0.1119, allocations: 34.02 kB / 484.5 MB, free: 1.418 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.132e-06/0.1119, allocations: 4 kB / 484.5 MB, free: 1.414 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.706e-06/0.1119, allocations: 0 / 484.5 MB, free: 1.414 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.017e-06/0.1119, allocations: 3.938 kB / 484.5 MB, free: 1.41 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.936e-05/0.1119, allocations: 7.984 kB / 484.5 MB, free: 1.402 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000125/0.1121, allocations: 145.7 kB / 484.6 MB, free: 1.211 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.669e-05/0.1121, allocations: 22.52 kB / 484.6 MB, free: 1.18 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.565e-05/0.1121, allocations: 12.89 kB / 484.7 MB, free: 1.164 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.803e-06/0.1122, allocations: 0 / 484.7 MB, free: 1.164 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.399e-05/0.1122, allocations: 64.2 kB / 484.7 MB, free: 1.086 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.52e-07/0.1122, allocations: 0 / 484.7 MB, free: 1.086 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001688/0.1124, allocations: 67.38 kB / 484.8 MB, free: 1.008 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.829e-05/0.1124, allocations: 77.11 kB / 484.9 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.498e-05/0.1125, allocations: 93.86 kB / 484.9 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.177e-05/0.1125, allocations: 25.7 kB / 485 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.729e-05/0.1126, allocations: 84.14 kB / 485.1 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.936e-05/0.1126, allocations: 8.062 kB / 485.1 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.936e-05/0.1126, allocations: 9.719 kB / 485.1 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001122/0.1127, allocations: 314.8 kB / 485.4 MB, free: 364 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.228e-05/0.1128, allocations: 4 kB / 485.4 MB, free: 360 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.58e-06/0.1128, allocations: 0 / 485.4 MB, free: 360 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.568e-05/0.1128, allocations: 64.27 kB / 485.4 MB, free: 280 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.1128, allocations: 0 / 485.4 MB, free: 280 kB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.54e-05/0.1129, allocations: 59.5 kB / 485.5 MB, free: 208 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.207e-05/0.1129, allocations: 41.62 kB / 485.5 MB, free: 160 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.648e-06/0.113, allocations: 0 / 485.5 MB, free: 160 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.108e-05/0.113, allocations: 0 / 485.5 MB, free: 160 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.876e-06/0.113, allocations: 4 kB / 485.5 MB, free: 156 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.082e-06/0.113, allocations: 3.938 kB / 485.6 MB, free: 152 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.779e-05/0.113, allocations: 4 kB / 485.6 MB, free: 148 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.843e-06/0.113, allocations: 0 / 485.6 MB, free: 148 kB / 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.744e-05/0.1131, allocations: 131.6 kB / 485.7 MB, free: 16 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.718e-06/0.1131, allocations: 7.906 kB / 485.7 MB, free: 15.99 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.029e-05/0.1132, allocations: 11.12 kB / 485.7 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.1132, allocations: 0 / 485.7 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.1132, allocations: 3.984 kB / 485.7 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.334e-06/0.1132, allocations: 0 / 485.7 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.994e-05/0.1133, allocations: 141.7 kB / 485.8 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.1133, allocations: 0 / 485.8 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.81e-07/0.1133, allocations: 4 kB / 485.8 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/0.1133, allocations: 3.938 kB / 485.9 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.702e-06/0.1133, allocations: 0 / 485.9 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.1133, allocations: 0 / 485.9 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.1133, allocations: 7.922 kB / 485.9 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.285e-05/0.1134, allocations: 98.83 kB / 486 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.078e-05/0.1135, allocations: 84.95 kB / 486 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.342e-05/0.1135, allocations: 3.938 kB / 486 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.15e-05/0.1135, allocations: 3.984 kB / 486 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.095e-05/0.1135, allocations: 7.938 kB / 486.1 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.635e-06/0.1135, allocations: 0 / 486.1 MB, free: 15.54 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.841e-05/0.1136, allocations: 79.31 kB / 486.1 MB, free: 15.46 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1136, allocations: 0 / 486.1 MB, free: 15.46 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002164/0.1138, allocations: 15.94 kB / 486.1 MB, free: 15.45 MB / 366.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.0003584/0.1142, allocations: 137.9 kB / 486.3 MB, free: 15.3 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001141/0.1143, allocations: 55.41 kB / 486.3 MB, free: 15.23 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.1143, allocations: 4 kB / 486.3 MB, free: 15.23 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 5.618e-05/0.1144, allocations: 55.47 kB / 486.4 MB, free: 15.16 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002218/0.1146, allocations: 6.344 kB / 486.4 MB, free: 15.16 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000241/0.1149, allocations: 80.92 kB / 486.5 MB, free: 15.05 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003505/0.1152, allocations: 0.669 MB / 487.2 MB, free: 14.36 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.442e-06/0.1153, allocations: 3.938 kB / 487.2 MB, free: 14.36 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.467e-05/0.1153, allocations: 7.438 kB / 487.2 MB, free: 14.35 MB / 366.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1153, allocations: 4 kB / 487.2 MB, free: 14.35 MB / 366.1 MB Notification: Performance of Templates: time 0.003858/0.1192, allocations: 0.6485 MB / 487.8 MB, free: 13.7 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.sim & ./ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Math.TestScalarFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches