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.001227/0.001227, allocations: 117.7 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001345/0.001346, allocations: 208.8 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.448/1.448, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.218/0.218, allocations: 46.1 MB / 344.9 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001542/0.001542, allocations: 67.89 kB / 481.9 MB, free: 4.09 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3731/0.3746, allocations: 62.45 MB / 0.5316 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001566/0.3763, allocations: 0.4923 MB / 0.5321 GB, free: 13.24 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002194/0.3785, allocations: 1.639 MB / 0.5337 GB, free: 11.94 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.41e-05/0.3785, allocations: 1.188 kB / 0.5337 GB, free: 11.94 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.642e-05/0.3785, allocations: 0 / 0.5337 GB, free: 11.94 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.542e-06/0.3786, allocations: 0 / 0.5337 GB, free: 11.94 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.0006681/0.3792, allocations: 156.6 kB / 0.5339 GB, free: 11.84 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.374e-05/0.3793, allocations: 6.172 kB / 0.5339 GB, free: 11.83 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.524e-05/0.3794, allocations: 1.031 kB / 0.5339 GB, free: 11.83 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.996e-05/0.3794, allocations: 9.078 kB / 0.5339 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.365e-05/0.3794, allocations: 7.938 kB / 0.5339 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.474e-06/0.3794, allocations: 0.9375 kB / 0.5339 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003871/0.3798, allocations: 114.6 kB / 0.534 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.973e-06/0.3798, allocations: 4 kB / 0.534 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.697e-05/0.3799, allocations: 2.062 kB / 0.534 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001166/0.38, allocations: 37.33 kB / 0.534 GB, free: 11.75 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.38, allocations: 0 / 0.534 GB, free: 11.75 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.38, allocations: 0 / 0.534 GB, free: 11.75 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.4e-06/0.38, allocations: 0 / 0.534 GB, free: 11.75 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.0003197/0.3803, allocations: 350.7 kB / 0.5344 GB, free: 11.36 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.742e-05/0.3804, allocations: 7.844 kB / 0.5344 GB, free: 11.36 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.198e-05/0.3804, allocations: 2.156 kB / 0.5344 GB, free: 11.36 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.411e-05/0.3805, allocations: 164.4 kB / 0.5345 GB, free: 11.16 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.21e-05/0.3805, allocations: 1.469 kB / 0.5345 GB, free: 11.16 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.898e-06/0.3805, allocations: 1.5 kB / 0.5345 GB, free: 11.16 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.793e-05/0.3806, allocations: 39.23 kB / 0.5346 GB, free: 11.12 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.343e-06/0.3807, allocations: 5.75 kB / 0.5346 GB, free: 11.11 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.047e-05/0.3807, allocations: 3.984 kB / 0.5346 GB, free: 11.11 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.517e-06/0.3807, allocations: 0 / 0.5346 GB, free: 11.11 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.024e-05/0.3807, allocations: 5.078 kB / 0.5346 GB, free: 11.11 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001277/0.3808, allocations: 142.5 kB / 0.5347 GB, free: 10.92 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.047e-05/0.3809, allocations: 25.77 kB / 0.5348 GB, free: 10.89 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.517e-05/0.3809, allocations: 6.453 kB / 0.5348 GB, free: 10.88 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.995e-06/0.3809, allocations: 0 / 0.5348 GB, free: 10.88 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.552e-05/0.381, allocations: 65.58 kB / 0.5348 GB, free: 10.8 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.72e-07/0.381, allocations: 0 / 0.5348 GB, free: 10.8 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001776/0.3812, allocations: 62.58 kB / 0.5349 GB, free: 10.73 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.561e-05/0.3812, allocations: 82.3 kB / 0.535 GB, free: 10.64 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.198e-05/0.3813, allocations: 93.86 kB / 0.5351 GB, free: 10.54 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.096e-05/0.3813, allocations: 25.7 kB / 0.5351 GB, free: 10.5 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.797e-05/0.3813, allocations: 81.14 kB / 0.5352 GB, free: 10.42 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.188e-05/0.3814, allocations: 0 / 0.5352 GB, free: 10.42 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.586e-05/0.3814, allocations: 12.81 kB / 0.5352 GB, free: 10.41 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001006/0.3815, allocations: 314.8 kB / 0.5355 GB, free: 10.09 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.144e-05/0.3815, allocations: 5 kB / 0.5355 GB, free: 10.09 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.073e-06/0.3815, allocations: 5.031 kB / 0.5355 GB, free: 10.08 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.97e-05/0.3816, allocations: 67.89 kB / 0.5355 GB, free: 10 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.3816, allocations: 0 / 0.5355 GB, free: 10 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.463e-05/0.3817, allocations: 59 kB / 0.5356 GB, free: 9.941 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.245e-05/0.3817, allocations: 39 kB / 0.5356 GB, free: 9.902 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.618e-06/0.3817, allocations: 0 / 0.5356 GB, free: 9.902 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.369e-05/0.3817, allocations: 1.062 kB / 0.5356 GB, free: 9.902 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.082e-06/0.3817, allocations: 0 / 0.5356 GB, free: 9.902 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.09e-06/0.3818, allocations: 0 / 0.5356 GB, free: 9.902 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.841e-05/0.3818, allocations: 5.188 kB / 0.5356 GB, free: 9.898 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.186e-06/0.3818, allocations: 0.9688 kB / 0.5356 GB, free: 9.898 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.0001033/0.3819, allocations: 138 kB / 0.5358 GB, free: 9.75 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.061e-05/0.3819, allocations: 5.5 kB / 0.5358 GB, free: 9.746 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.299e-05/0.3819, allocations: 7.125 kB / 0.5358 GB, free: 9.742 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.3819, allocations: 0 / 0.5358 GB, free: 9.742 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.346e-06/0.382, allocations: 3.984 kB / 0.5358 GB, free: 9.738 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.382, allocations: 5.156 kB / 0.5358 GB, free: 9.734 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.611e-05/0.3821, allocations: 150.9 kB / 0.5359 GB, free: 9.539 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.3821, allocations: 4 kB / 0.5359 GB, free: 9.535 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.72e-07/0.3821, allocations: 0 / 0.5359 GB, free: 9.535 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.3821, allocations: 5.188 kB / 0.536 GB, free: 9.531 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.653e-06/0.3821, allocations: 0 / 0.536 GB, free: 9.531 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.22e-07/0.3821, allocations: 1.5 kB / 0.536 GB, free: 9.531 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.3821, allocations: 3.938 kB / 0.536 GB, free: 9.527 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.857e-05/0.3822, allocations: 90.27 kB / 0.536 GB, free: 9.426 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.596e-05/0.3823, allocations: 77.11 kB / 0.5361 GB, free: 9.332 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.422e-05/0.3823, allocations: 9.25 kB / 0.5361 GB, free: 9.324 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.068e-05/0.3823, allocations: 3.984 kB / 0.5361 GB, free: 9.32 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.888e-06/0.3823, allocations: 1.031 kB / 0.5361 GB, free: 9.32 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.789e-06/0.3823, allocations: 5.297 kB / 0.5361 GB, free: 9.316 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.025e-05/0.3824, allocations: 75.28 kB / 0.5362 GB, free: 9.242 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3824, allocations: 0 / 0.5362 GB, free: 9.242 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002353/0.3826, allocations: 22.23 kB / 0.5362 GB, free: 9.238 MB / 398.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.0003358/0.3829, allocations: 146.9 kB / 0.5364 GB, free: 9.121 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001026/0.3831, allocations: 60.84 kB / 0.5364 GB, free: 9.055 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.3831, allocations: 0 / 0.5364 GB, free: 9.055 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.061e-05/0.3831, allocations: 55.53 kB / 0.5365 GB, free: 8.992 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001259/0.3832, allocations: 1.375 kB / 0.5365 GB, free: 8.992 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002151/0.3835, allocations: 107.1 kB / 0.5366 GB, free: 8.863 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000235/0.3837, allocations: 0.6703 MB / 0.5372 GB, free: 8.168 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.146e-05/0.3837, allocations: 11.56 kB / 0.5372 GB, free: 8.156 MB / 398.1 MB Notification: Performance of SimCode: time 2.01e-07/0.3837, allocations: 1.375 kB / 0.5372 GB, free: 8.156 MB / 398.1 MB Notification: Performance of Templates: time 0.002398/0.3861, allocations: 0.6718 MB / 0.5379 GB, free: 7.816 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