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.001837/0.001837, allocations: 112.3 kB / 18.46 MB, free: 4.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002294/0.002294, allocations: 207.9 kB / 19.41 MB, free: 3.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.41/1.41, allocations: 227.4 MB / 247.6 MB, free: 10.54 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2075/0.2075, allocations: 46.11 MB / 345 MB, free: 11.54 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001505/0.001505, allocations: 83.8 kB / 482 MB, free: 4.121 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2914/0.2929, allocations: 62.44 MB / 0.5316 GB, free: 13.63 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001651/0.2946, allocations: 498.2 kB / 0.5321 GB, free: 13.27 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00224/0.2968, allocations: 1.638 MB / 0.5337 GB, free: 11.97 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.277e-05/0.2969, allocations: 1.375 kB / 0.5337 GB, free: 11.97 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.15e-05/0.2969, allocations: 0 / 0.5337 GB, free: 11.97 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.27e-06/0.2969, allocations: 0 / 0.5337 GB, free: 11.97 MB / 398.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.0006967/0.2976, allocations: 161 kB / 0.5339 GB, free: 11.86 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.947e-05/0.2977, allocations: 1.375 kB / 0.5339 GB, free: 11.86 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.583e-05/0.2977, allocations: 9.297 kB / 0.5339 GB, free: 11.86 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.705e-05/0.2978, allocations: 5.312 kB / 0.5339 GB, free: 11.85 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.887e-05/0.2978, allocations: 0 / 0.5339 GB, free: 11.85 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.173e-06/0.2978, allocations: 0 / 0.5339 GB, free: 11.85 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004056/0.2982, allocations: 127.2 kB / 0.534 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.043e-06/0.2982, allocations: 0 / 0.534 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.692e-05/0.2982, allocations: 1.375 kB / 0.534 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001107/0.2984, allocations: 36.45 kB / 0.5341 GB, free: 11.77 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.2984, allocations: 1.375 kB / 0.5341 GB, free: 11.77 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.2984, allocations: 0 / 0.5341 GB, free: 11.77 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.69e-06/0.2984, allocations: 0 / 0.5341 GB, free: 11.77 MB / 398.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.0002897/0.2987, allocations: 349.5 kB / 0.5344 GB, free: 11.39 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.772e-05/0.2987, allocations: 8.25 kB / 0.5344 GB, free: 11.39 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.156e-05/0.2988, allocations: 2.312 kB / 0.5344 GB, free: 11.39 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.318e-05/0.2989, allocations: 168.4 kB / 0.5346 GB, free: 11.18 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.376e-05/0.2989, allocations: 1.75 kB / 0.5346 GB, free: 11.18 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.814e-06/0.2989, allocations: 4.312 kB / 0.5346 GB, free: 11.18 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.947e-05/0.299, allocations: 32.77 kB / 0.5346 GB, free: 11.14 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.833e-06/0.299, allocations: 0 / 0.5346 GB, free: 11.14 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.506e-06/0.299, allocations: 0 / 0.5346 GB, free: 11.14 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.727e-06/0.299, allocations: 1.375 kB / 0.5346 GB, free: 11.14 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.79e-05/0.299, allocations: 5.359 kB / 0.5346 GB, free: 11.14 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001252/0.2992, allocations: 147 kB / 0.5347 GB, free: 10.95 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.997e-05/0.2992, allocations: 27.89 kB / 0.5348 GB, free: 10.91 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.365e-05/0.2992, allocations: 6.234 kB / 0.5348 GB, free: 10.91 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.293e-06/0.2992, allocations: 0 / 0.5348 GB, free: 10.91 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.976e-05/0.2993, allocations: 61.58 kB / 0.5348 GB, free: 10.83 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.173e-06/0.2993, allocations: 0 / 0.5348 GB, free: 10.83 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.000155/0.2995, allocations: 63.64 kB / 0.5349 GB, free: 10.77 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.586e-05/0.2995, allocations: 86.55 kB / 0.535 GB, free: 10.66 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.366e-05/0.2996, allocations: 93.86 kB / 0.5351 GB, free: 10.56 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.186e-05/0.2996, allocations: 25.7 kB / 0.5351 GB, free: 10.53 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.362e-05/0.2996, allocations: 80.14 kB / 0.5352 GB, free: 10.45 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.477e-05/0.2996, allocations: 1.375 kB / 0.5352 GB, free: 10.45 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.668e-05/0.2997, allocations: 11.09 kB / 0.5352 GB, free: 10.43 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001036/0.2998, allocations: 312.2 kB / 0.5355 GB, free: 10.12 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.979e-06/0.2998, allocations: 1.375 kB / 0.5355 GB, free: 10.12 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.012e-05/0.2998, allocations: 7.984 kB / 0.5355 GB, free: 10.11 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.351e-05/0.2999, allocations: 64.3 kB / 0.5355 GB, free: 10.04 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.2999, allocations: 0 / 0.5355 GB, free: 10.04 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.687e-05/0.2999, allocations: 58.06 kB / 0.5356 GB, free: 9.977 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3e-05/0.3, allocations: 36.17 kB / 0.5356 GB, free: 9.941 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.632e-06/0.3, allocations: 7.875 kB / 0.5356 GB, free: 9.934 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.344e-05/0.3, allocations: 3.984 kB / 0.5356 GB, free: 9.93 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.173e-06/0.3, allocations: 1.25 kB / 0.5356 GB, free: 9.93 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.732e-06/0.3, allocations: 0 / 0.5356 GB, free: 9.93 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.538e-05/0.3001, allocations: 9.406 kB / 0.5357 GB, free: 9.922 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.597e-06/0.3001, allocations: 0 / 0.5357 GB, free: 9.922 MB / 398.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.0001044/0.3002, allocations: 138.3 kB / 0.5358 GB, free: 9.773 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.087e-06/0.3002, allocations: 0 / 0.5358 GB, free: 9.773 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.657e-05/0.3002, allocations: 12.56 kB / 0.5358 GB, free: 9.766 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.501e-06/0.3002, allocations: 0 / 0.5358 GB, free: 9.766 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.3002, allocations: 3.938 kB / 0.5358 GB, free: 9.762 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.653e-05/0.3003, allocations: 86.53 kB / 0.5359 GB, free: 9.66 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.386e-05/0.3003, allocations: 0 / 0.5359 GB, free: 9.66 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.064e-05/0.3003, allocations: 5.406 kB / 0.5359 GB, free: 9.656 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.328e-05/0.3003, allocations: 0 / 0.5359 GB, free: 9.656 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001475/0.3005, allocations: 187.9 kB / 0.5361 GB, free: 9.457 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0001944/0.3007, allocations: 243.4 kB / 0.5363 GB, free: 9.207 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 2.598e-05/0.3007, allocations: 6.5 kB / 0.5363 GB, free: 9.203 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.298e-05/0.3008, allocations: 75.34 kB / 0.5364 GB, free: 9.129 MB / 398.1 MB Notification: Performance of Backend: time 3.61e-07/0.3008, allocations: 4 kB / 0.5364 GB, free: 9.125 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006406/0.3014, allocations: 183.7 kB / 0.5366 GB, free: 8.969 MB / 398.1 MB Notification: Performance of SimCode: time 0.000472/0.3019, allocations: 0.5792 MB / 0.5371 GB, free: 8.336 MB / 398.1 MB Notification: Performance of Templates: time 0.003185/0.3051, allocations: 0.6636 MB / 0.5378 GB, free: 7.984 MB / 398.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 -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