Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_ModelicaTest.Math.TestScalarFunctions") translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001573/0.001572, allocations: 111.4 kB / 17.04 MB, free: 5.812 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.001666/0.001666, allocations: 195 kB / 17.98 MB, free: 5.027 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.492/1.492, allocations: 205.1 MB / 223.9 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2078/0.2078, allocations: 43.52 MB / 314.7 MB, free: 488 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002833/0.002833, allocations: 65.53 kB / 384.2 MB, free: 56.34 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09785/0.1007, allocations: 57.79 MB / 442 MB, free: 6.18 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001496/0.1023, allocations: 498.6 kB / 442.4 MB, free: 5.691 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001265/0.1035, allocations: 1.417 MB / 443.9 MB, free: 4.258 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.758e-05/0.1036, allocations: 4 kB / 443.9 MB, free: 4.254 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.205e-05/0.1036, allocations: 0 / 443.9 MB, free: 4.254 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 4.178e-06/0.1036, allocations: 0 / 443.9 MB, free: 4.254 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003987/0.104, allocations: 107.6 kB / 444 MB, free: 4.148 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 4.677e-05/0.1041, allocations: 7.984 kB / 444 MB, free: 4.141 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.941e-05/0.1041, allocations: 3.984 kB / 444 MB, free: 4.137 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.2e-05/0.1041, allocations: 0 / 444 MB, free: 4.137 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.816e-05/0.1041, allocations: 4 kB / 444 MB, free: 4.133 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.182e-06/0.1041, allocations: 0 / 444 MB, free: 4.133 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002344/0.1044, allocations: 67.94 kB / 444.1 MB, free: 4.066 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.192e-06/0.1044, allocations: 0 / 444.1 MB, free: 4.066 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 1.668e-05/0.1044, allocations: 4 kB / 444.1 MB, free: 4.062 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 8.249e-05/0.1045, allocations: 27.89 kB / 444.1 MB, free: 4.035 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.1045, allocations: 0 / 444.1 MB, free: 4.035 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.1045, allocations: 4 kB / 444.1 MB, free: 4.031 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.248e-06/0.1045, allocations: 0 / 444.1 MB, free: 4.031 MB / 318.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.0002099/0.1047, allocations: 345.2 kB / 444.4 MB, free: 3.641 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.929e-05/0.1048, allocations: 15.89 kB / 444.4 MB, free: 3.625 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.596e-05/0.1048, allocations: 8.844 kB / 444.5 MB, free: 3.617 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.512e-05/0.1049, allocations: 164.3 kB / 444.6 MB, free: 3.418 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.598e-06/0.1049, allocations: 384 / 444.6 MB, free: 3.418 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.345e-06/0.1049, allocations: 384 / 444.6 MB, free: 3.418 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.545e-05/0.105, allocations: 34.02 kB / 444.6 MB, free: 3.379 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.48e-06/0.105, allocations: 0 / 444.6 MB, free: 3.379 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.424e-06/0.105, allocations: 0 / 444.6 MB, free: 3.379 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.567e-06/0.105, allocations: 0 / 444.6 MB, free: 3.379 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.601e-05/0.105, allocations: 11.98 kB / 444.7 MB, free: 3.367 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.223e-05/0.1051, allocations: 149.7 kB / 444.8 MB, free: 3.172 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 2.934e-05/0.1051, allocations: 18.52 kB / 444.8 MB, free: 3.145 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.122e-05/0.1051, allocations: 8.953 kB / 444.8 MB, free: 3.133 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.101e-06/0.1052, allocations: 0 / 444.8 MB, free: 3.133 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.379e-05/0.1052, allocations: 64.2 kB / 444.9 MB, free: 3.055 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 9.12e-07/0.1052, allocations: 0 / 444.9 MB, free: 3.055 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001215/0.1053, allocations: 63.39 kB / 445 MB, free: 2.98 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.234e-05/0.1053, allocations: 81.23 kB / 445 MB, free: 2.883 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.66e-05/0.1054, allocations: 89.86 kB / 445.1 MB, free: 2.785 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.35e-06/0.1054, allocations: 25.7 kB / 445.1 MB, free: 2.754 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.506e-06/0.1054, allocations: 80.14 kB / 445.2 MB, free: 2.672 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.259e-05/0.1054, allocations: 4 kB / 445.2 MB, free: 2.668 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.122e-05/0.1054, allocations: 17.66 kB / 445.2 MB, free: 2.645 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.508e-05/0.1055, allocations: 314.8 kB / 445.6 MB, free: 2.328 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.206e-06/0.1055, allocations: 7.938 kB / 445.6 MB, free: 2.32 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.368e-06/0.1055, allocations: 4 kB / 445.6 MB, free: 2.316 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.976e-05/0.1055, allocations: 60.27 kB / 445.6 MB, free: 2.242 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.1055, allocations: 0 / 445.6 MB, free: 2.242 MB / 318.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.646e-05/0.1056, allocations: 63.41 kB / 445.7 MB, free: 2.168 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.047e-05/0.1056, allocations: 38.88 kB / 445.7 MB, free: 2.125 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.597e-06/0.1056, allocations: 0 / 445.7 MB, free: 2.125 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.072e-05/0.1056, allocations: 0 / 445.7 MB, free: 2.125 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.02e-07/0.1056, allocations: 0 / 445.7 MB, free: 2.125 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.217e-06/0.1057, allocations: 0 / 445.7 MB, free: 2.125 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.374e-05/0.1057, allocations: 12.03 kB / 445.7 MB, free: 2.113 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.48e-06/0.1057, allocations: 0 / 445.7 MB, free: 2.113 MB / 318.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 4.247e-05/0.1057, allocations: 136.6 kB / 445.9 MB, free: 1.965 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.797e-06/0.1057, allocations: 7.938 kB / 445.9 MB, free: 1.957 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.965e-06/0.1058, allocations: 3.125 kB / 445.9 MB, free: 1.953 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.1058, allocations: 3.984 kB / 445.9 MB, free: 1.949 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.1058, allocations: 0 / 445.9 MB, free: 1.949 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.084e-06/0.1058, allocations: 3.938 kB / 445.9 MB, free: 1.945 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.256e-05/0.1058, allocations: 141.7 kB / 446 MB, free: 1.758 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.31e-07/0.1058, allocations: 4 kB / 446 MB, free: 1.754 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.032e-06/0.1058, allocations: 4 kB / 446 MB, free: 1.75 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.1058, allocations: 3.938 kB / 446 MB, free: 1.746 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.58e-06/0.1058, allocations: 0 / 446 MB, free: 1.746 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.41e-07/0.1059, allocations: 0 / 446 MB, free: 1.746 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.1059, allocations: 0 / 446 MB, free: 1.746 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.898e-05/0.1059, allocations: 94.83 kB / 446.1 MB, free: 1.629 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.278e-05/0.1059, allocations: 81.05 kB / 446.2 MB, free: 1.531 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.076e-05/0.106, allocations: 11.95 kB / 446.2 MB, free: 1.52 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.056e-06/0.106, allocations: 0 / 446.2 MB, free: 1.52 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.486e-05/0.106, allocations: 7.938 kB / 446.2 MB, free: 1.512 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.925e-06/0.106, allocations: 4 kB / 446.2 MB, free: 1.508 MB / 318.1 MB Notification: Performance of sorting global known variables: time 1.096e-05/0.106, allocations: 75.28 kB / 446.3 MB, free: 1.434 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.106, allocations: 0 / 446.3 MB, free: 1.434 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0001873/0.1062, allocations: 8 kB / 446.3 MB, free: 1.426 MB / 318.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.0001984/0.1064, allocations: 143.5 kB / 446.5 MB, free: 1.285 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 6.536e-05/0.1065, allocations: 63.39 kB / 446.5 MB, free: 1.211 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.1065, allocations: 0 / 446.5 MB, free: 1.211 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 2.967e-05/0.1065, allocations: 55.41 kB / 446.6 MB, free: 1.145 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001224/0.1067, allocations: 4 kB / 446.6 MB, free: 1.141 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001217/0.1068, allocations: 73.08 kB / 446.6 MB, free: 1.043 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.888e-05/0.1069, allocations: 0.6729 MB / 447.3 MB, free: 352 kB / 318.1 MB Notification: Performance of simCode: alias equations: time 5.23e-06/0.1069, allocations: 4.125 kB / 447.3 MB, free: 348 kB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.782e-06/0.1069, allocations: 11.38 kB / 447.3 MB, free: 336 kB / 318.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1069, allocations: 0 / 447.3 MB, free: 336 kB / 318.1 MB Notification: Performance of Templates: time 0.002233/0.1091, allocations: 0.5195 MB / 447.9 MB, free: 15.81 MB / 334.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions.sim & ./ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/TestScalarFunctions/TestScalarFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches