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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001822/0.001821, allocations: 169.7 kB / 8.74 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.459/1.459, allocations: 221.5 MB / 230.7 MB, free: 7.512 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008441/0.0008445, allocations: 102 kB / 281.6 MB, free: 5.262 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2142/0.2142, allocations: 44.14 MB / 376.5 MB, free: 3.047 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.489e-05/1.492e-05, allocations: 4.219 kB / 444.6 MB, free: 15.24 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1503/0.1503, allocations: 61.91 MB / 0.4947 GB, free: 1.266 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4974/0.6478, allocations: 85.8 MB / 0.5784 GB, free: 10.74 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002265/0.6481, allocations: 59.97 kB / 0.5785 GB, free: 10.68 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01831/0.6664, allocations: 6.441 MB / 0.5848 GB, free: 4.246 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.884e-06/0.6664, allocations: 3.938 kB / 0.5848 GB, free: 4.242 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.332e-06/0.6665, allocations: 0 / 0.5848 GB, free: 4.242 MB / 394.7 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.000363/0.6668, allocations: 368 kB / 0.5852 GB, free: 3.832 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.448e-05/0.6669, allocations: 19.98 kB / 0.5852 GB, free: 3.812 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.415e-05/0.6669, allocations: 0 / 0.5852 GB, free: 3.812 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001135/0.6671, allocations: 159.1 kB / 0.5853 GB, free: 3.617 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.594e-05/0.6671, allocations: 0 / 0.5853 GB, free: 3.617 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.544e-06/0.6671, allocations: 0 / 0.5853 GB, free: 3.617 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.051e-05/0.6671, allocations: 7.953 kB / 0.5853 GB, free: 3.609 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.256e-05/0.6672, allocations: 29.69 kB / 0.5854 GB, free: 3.574 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.744e-06/0.6672, allocations: 0 / 0.5854 GB, free: 3.574 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.027e-05/0.6672, allocations: 0 / 0.5854 GB, free: 3.574 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.891e-06/0.6673, allocations: 3.984 kB / 0.5854 GB, free: 3.57 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001175/0.6674, allocations: 130.2 kB / 0.5855 GB, free: 3.406 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.741e-05/0.6674, allocations: 22.52 kB / 0.5855 GB, free: 3.375 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.302e-05/0.6675, allocations: 4.859 kB / 0.5855 GB, free: 3.367 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.33e-06/0.6675, allocations: 0 / 0.5855 GB, free: 3.367 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.769e-05/0.6675, allocations: 60.36 kB / 0.5856 GB, free: 3.293 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 7.81e-07/0.6675, allocations: 0 / 0.5856 GB, free: 3.293 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002213/0.6678, allocations: 41.64 kB / 0.5856 GB, free: 3.246 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.26e-05/0.6678, allocations: 77.11 kB / 0.5857 GB, free: 3.152 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.022e-05/0.6679, allocations: 85 kB / 0.5858 GB, free: 3.062 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.342e-05/0.6679, allocations: 29.7 kB / 0.5858 GB, free: 3.027 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.087e-05/0.6679, allocations: 84.14 kB / 0.5859 GB, free: 2.941 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.151e-05/0.668, allocations: 0 / 0.5859 GB, free: 2.941 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.294e-06/0.668, allocations: 0 / 0.5859 GB, free: 2.941 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001271/0.6681, allocations: 310.8 kB / 0.5862 GB, free: 2.629 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.344e-06/0.6681, allocations: 0 / 0.5862 GB, free: 2.629 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.694e-06/0.6681, allocations: 8.031 kB / 0.5862 GB, free: 2.621 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.165e-05/0.6682, allocations: 3.938 kB / 0.5862 GB, free: 2.617 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.6682, allocations: 0.8438 kB / 0.5862 GB, free: 2.617 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.818e-05/0.6683, allocations: 37.69 kB / 0.5862 GB, free: 2.574 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.959e-05/0.6683, allocations: 33.64 kB / 0.5862 GB, free: 2.535 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/0.6683, allocations: 0 / 0.5862 GB, free: 2.535 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.414e-05/0.6683, allocations: 0 / 0.5862 GB, free: 2.535 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.482e-06/0.6683, allocations: 0 / 0.5862 GB, free: 2.535 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.032e-06/0.6683, allocations: 3.953 kB / 0.5863 GB, free: 2.531 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.353e-05/0.6684, allocations: 8.094 kB / 0.5863 GB, free: 2.523 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.973e-06/0.6684, allocations: 0 / 0.5863 GB, free: 2.523 MB / 394.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.023e-05/0.6685, allocations: 138.6 kB / 0.5864 GB, free: 2.375 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.267e-06/0.6685, allocations: 4 kB / 0.5864 GB, free: 2.371 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.579e-05/0.6685, allocations: 7.703 kB / 0.5864 GB, free: 2.363 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.32e-07/0.6685, allocations: 0 / 0.5864 GB, free: 2.363 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.6685, allocations: 0 / 0.5864 GB, free: 2.363 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.6685, allocations: 3.953 kB / 0.5864 GB, free: 2.359 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.655e-05/0.6686, allocations: 122.2 kB / 0.5865 GB, free: 2.203 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.31e-07/0.6686, allocations: 4 kB / 0.5865 GB, free: 2.199 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.214e-06/0.6686, allocations: 3.984 kB / 0.5865 GB, free: 2.195 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.6687, allocations: 8 kB / 0.5865 GB, free: 2.188 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.573e-06/0.6687, allocations: 0 / 0.5865 GB, free: 2.188 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.52e-07/0.6687, allocations: 0 / 0.5865 GB, free: 2.188 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/0.6687, allocations: 3.938 kB / 0.5865 GB, free: 2.184 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.845e-05/0.6688, allocations: 65.08 kB / 0.5866 GB, free: 2.102 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.312e-05/0.6688, allocations: 85.09 kB / 0.5867 GB, free: 2 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.373e-05/0.6689, allocations: 4.031 kB / 0.5867 GB, free: 1.996 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.115e-06/0.6689, allocations: 0 / 0.5867 GB, free: 1.996 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.623e-05/0.6689, allocations: 0 / 0.5867 GB, free: 1.996 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.415e-06/0.6689, allocations: 0 / 0.5867 GB, free: 1.996 MB / 394.7 MB Notification: Performance of sorting global known variables: time 3.63e-05/0.669, allocations: 79.28 kB / 0.5868 GB, free: 1.918 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.669, allocations: 0 / 0.5868 GB, free: 1.918 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000221/0.6692, allocations: 8 kB / 0.5868 GB, free: 1.91 MB / 394.7 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003007/0.6695, allocations: 112.5 kB / 0.5869 GB, free: 1.793 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 8.796e-05/0.6696, allocations: 59.34 kB / 0.5869 GB, free: 1.723 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.6696, allocations: 3.938 kB / 0.5869 GB, free: 1.719 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 3.764e-05/0.6696, allocations: 55.41 kB / 0.587 GB, free: 1.652 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.084e-05/0.6697, allocations: 5.781 kB / 0.587 GB, free: 1.648 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001561/0.6699, allocations: 48.02 kB / 0.587 GB, free: 1.578 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002574/0.6702, allocations: 0.6768 MB / 0.5877 GB, free: 0.875 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 5.991e-06/0.6702, allocations: 4.125 kB / 0.5877 GB, free: 0.8711 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.037e-05/0.6702, allocations: 7.438 kB / 0.5877 GB, free: 0.8633 MB / 394.7 MB Notification: Performance of SimCode: time 2.21e-07/0.6702, allocations: 0 / 0.5877 GB, free: 0.8633 MB / 394.7 MB Notification: Performance of Templates: time 0.002164/0.6724, allocations: 290.7 kB / 0.588 GB, free: 0.5859 MB / 394.7 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestScalarFunctions/TestScalarFunctions.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches