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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001472/0.001472, allocations: 80.98 kB / 20.66 MB, free: 3.836 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001698/0.001698, allocations: 173 kB / 24.06 MB, free: 448 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.033/1.033, allocations: 158.6 MB / 185.9 MB, free: 2.809 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.148/0.148, allocations: 32.38 MB / 270.7 MB, free: 14.54 MB / 266.7 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions") translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.974e-06/1.974e-06, allocations: 0 / 348.1 MB, free: 9.195 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.431e-05/2.628e-05, allocations: 6.25 kB / 348.1 MB, free: 9.188 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001226/0.001252, allocations: 0.5142 MB / 348.6 MB, free: 8.68 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001385/0.002637, allocations: 1.428 MB / 350 MB, free: 7.23 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.88e-05/0.002666, allocations: 0 / 350 MB, free: 7.23 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 1.69e-05/0.002683, allocations: 4 kB / 350 MB, free: 7.227 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 7.183e-06/0.00269, allocations: 0 / 350 MB, free: 7.227 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000428/0.003118, allocations: 107.5 kB / 350.2 MB, free: 7.121 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 4.756e-05/0.003166, allocations: 3.984 kB / 350.2 MB, free: 7.117 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.04e-05/0.003206, allocations: 0 / 350.2 MB, free: 7.117 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.979e-05/0.003236, allocations: 0 / 350.2 MB, free: 7.117 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.669e-05/0.003273, allocations: 4 kB / 350.2 MB, free: 7.113 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.005e-05/0.003283, allocations: 0 / 350.2 MB, free: 7.113 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003016/0.003584, allocations: 75.8 kB / 350.2 MB, free: 7.039 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.035e-05/0.003595, allocations: 4 kB / 350.2 MB, free: 7.035 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.324e-05/0.003608, allocations: 0 / 350.2 MB, free: 7.035 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 8.303e-05/0.003691, allocations: 23.97 kB / 350.3 MB, free: 7.012 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.394e-06/0.003693, allocations: 4 kB / 350.3 MB, free: 7.008 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.003695, allocations: 0 / 350.3 MB, free: 7.008 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.299e-06/0.003699, allocations: 0 / 350.3 MB, free: 7.008 MB / 282.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.0002262/0.003925, allocations: 370.1 kB / 350.6 MB, free: 6.605 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.654e-05/0.003962, allocations: 12.03 kB / 350.6 MB, free: 6.594 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.295e-05/0.003985, allocations: 0.9375 kB / 350.6 MB, free: 6.594 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 3.354e-05/0.004018, allocations: 104.6 kB / 350.7 MB, free: 6.465 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.598e-06/0.004028, allocations: 8.359 kB / 350.8 MB, free: 6.457 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.771e-06/0.004034, allocations: 4.375 kB / 350.8 MB, free: 6.453 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.047e-05/0.004104, allocations: 59.89 kB / 350.8 MB, free: 6.383 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.575e-06/0.004112, allocations: 192 / 350.8 MB, free: 6.383 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.141e-05/0.004123, allocations: 4.375 kB / 350.8 MB, free: 6.379 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.101e-06/0.004129, allocations: 3.938 kB / 350.8 MB, free: 6.375 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.045e-05/0.00414, allocations: 25.7 kB / 350.8 MB, free: 6.344 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.352e-05/0.004203, allocations: 93.27 kB / 350.9 MB, free: 6.227 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.245e-05/0.004236, allocations: 52.77 kB / 351 MB, free: 6.156 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.22e-05/0.004248, allocations: 41.48 kB / 351 MB, free: 6.105 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.937e-06/0.004252, allocations: 3.984 kB / 351 MB, free: 6.102 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.057e-05/0.004282, allocations: 63.03 kB / 351.1 MB, free: 6.023 MB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 6.91e-07/0.004283, allocations: 0 / 351.1 MB, free: 6.023 MB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001329/0.004416, allocations: 110.8 kB / 351.2 MB, free: 5.891 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.495e-05/0.004441, allocations: 85.09 kB / 351.3 MB, free: 5.789 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.85e-05/0.004469, allocations: 142.2 kB / 351.4 MB, free: 5.637 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.003e-06/0.004476, allocations: 29.7 kB / 351.5 MB, free: 5.602 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.387e-05/0.00449, allocations: 134.8 kB / 351.6 MB, free: 5.465 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.461e-05/0.004505, allocations: 352 / 351.6 MB, free: 5.465 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.273e-05/0.004528, allocations: 19.5 kB / 351.6 MB, free: 5.438 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 4.683e-05/0.004574, allocations: 0.4883 MB / 352.1 MB, free: 4.938 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.706e-06/0.004583, allocations: 25.7 kB / 352.1 MB, free: 4.906 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.326e-06/0.004592, allocations: 33.64 kB / 352.2 MB, free: 4.867 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.812e-05/0.00462, allocations: 63.08 kB / 352.2 MB, free: 4.789 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.402e-06/0.004621, allocations: 4 kB / 352.2 MB, free: 4.785 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.558e-05/0.004677, allocations: 85.06 kB / 352.3 MB, free: 4.684 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.542e-05/0.004702, allocations: 33.7 kB / 352.3 MB, free: 4.645 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.71e-06/0.004708, allocations: 4 kB / 352.3 MB, free: 4.641 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.631e-05/0.004724, allocations: 96 / 352.3 MB, free: 4.641 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.443e-06/0.004725, allocations: 4 kB / 352.3 MB, free: 4.637 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.446e-06/0.004729, allocations: 0 / 352.3 MB, free: 4.637 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.697e-05/0.004746, allocations: 11.92 kB / 352.4 MB, free: 4.625 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.344e-06/0.004753, allocations: 4 kB / 352.4 MB, free: 4.621 MB / 282.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 () * 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 5.091e-05/0.004804, allocations: 178.3 kB / 352.5 MB, free: 4.43 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.021e-05/0.004814, allocations: 7.938 kB / 352.5 MB, free: 4.422 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.488e-05/0.004829, allocations: 3 kB / 352.5 MB, free: 4.418 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-06/0.004831, allocations: 0 / 352.5 MB, free: 4.418 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.715e-06/0.004833, allocations: 0 / 352.5 MB, free: 4.418 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.004837, allocations: 0 / 352.5 MB, free: 4.418 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.851e-05/0.004885, allocations: 101.2 kB / 352.6 MB, free: 4.293 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.866e-06/0.004888, allocations: 3.984 kB / 352.6 MB, free: 4.289 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.81e-07/0.004889, allocations: 0 / 352.6 MB, free: 4.289 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.004891, allocations: 0 / 352.6 MB, free: 4.289 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.929e-06/0.004896, allocations: 0 / 352.6 MB, free: 4.289 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.72e-07/0.004897, allocations: 0 / 352.6 MB, free: 4.289 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.004898, allocations: 0 / 352.6 MB, free: 4.289 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.204e-05/0.00499, allocations: 135.8 kB / 352.8 MB, free: 4.121 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.412e-06/0.004996, allocations: 0 / 352.8 MB, free: 4.121 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.046e-05/0.005006, allocations: 0 / 352.8 MB, free: 4.121 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.235e-06/0.005015, allocations: 32 / 352.8 MB, free: 4.121 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.028e-05/0.005025, allocations: 4 kB / 352.8 MB, free: 4.117 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.755e-06/0.005028, allocations: 4 kB / 352.8 MB, free: 4.113 MB / 282.7 MB Notification: Performance of sorting global known variables: time 1.696e-05/0.005045, allocations: 127.1 kB / 352.9 MB, free: 3.988 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.005045, allocations: 3.938 kB / 352.9 MB, free: 3.984 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001791/0.005224, allocations: 11.94 kB / 352.9 MB, free: 3.973 MB / 282.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) * 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.0002384/0.005462, allocations: 137.8 kB / 353.1 MB, free: 3.84 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 8.471e-05/0.005547, allocations: 122.5 kB / 353.2 MB, free: 3.691 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.005549, allocations: 0 / 353.2 MB, free: 3.691 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 1.799e-05/0.005567, allocations: 92.78 kB / 353.3 MB, free: 3.578 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.751e-05/0.005654, allocations: 7.938 kB / 353.3 MB, free: 3.57 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001243/0.005779, allocations: 105.7 kB / 353.4 MB, free: 3.434 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 1.759e-05/0.005796, allocations: 55.36 kB / 353.4 MB, free: 3.359 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 5.21e-06/0.005802, allocations: 0 / 353.4 MB, free: 3.359 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.647e-05/0.005828, allocations: 74.19 kB / 353.5 MB, free: 3.285 MB / 282.7 MB Notification: Performance of SimCode: time 6.32e-07/0.005829, allocations: 0 / 353.5 MB, free: 3.285 MB / 282.7 MB Notification: Performance of Templates: time 0.002283/0.008111, allocations: 0.5947 MB / 354.1 MB, free: 2.691 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/TestScalarFunctions/TestScalarFunctions.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.970939300954342]