Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_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.0009427/0.0009427, allocations: 71.77 kB / 21.69 MB, free: 2.852 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.0009579/0.0009579, allocations: 166.6 kB / 24.99 MB, free: 8.789 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.076/1.076, allocations: 177.1 MB / 205.3 MB, free: 5.621 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2825/0.2825, allocations: 34.25 MB / 296 MB, free: 0.668 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.0_ModelicaTest.Math.TestScalarFunctions") translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.373e-06/1.373e-06, allocations: 0 / 378 MB, free: 2.969 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.904e-05/2.041e-05, allocations: 5.969 kB / 378 MB, free: 2.965 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.0009407/0.0009611, allocations: 0.4969 MB / 378.5 MB, free: 2.465 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001694/0.002655, allocations: 1.63 MB / 380.1 MB, free: 0.8164 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.139e-05/0.002677, allocations: 0 / 380.1 MB, free: 0.8164 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.592e-05/0.002692, allocations: 7.938 kB / 380.1 MB, free: 0.8086 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 5.861e-06/0.002698, allocations: 0 / 380.1 MB, free: 0.8086 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/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.0005039/0.003202, allocations: 167.1 kB / 380.3 MB, free: 0.6445 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 5.585e-05/0.003258, allocations: 0 / 380.3 MB, free: 0.6445 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.643e-05/0.003294, allocations: 0 / 380.3 MB, free: 0.6445 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.573e-05/0.00332, allocations: 8 kB / 380.3 MB, free: 0.6367 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.534e-05/0.003346, allocations: 0 / 380.3 MB, free: 0.6367 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 9.578e-06/0.003355, allocations: 0 / 380.3 MB, free: 0.6367 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003109/0.003666, allocations: 115.8 kB / 380.4 MB, free: 0.5234 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 8.897e-06/0.003675, allocations: 4 kB / 380.4 MB, free: 0.5195 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 1.605e-05/0.003691, allocations: 0 / 380.4 MB, free: 0.5195 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001045/0.003795, allocations: 47.88 kB / 380.5 MB, free: 484 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.134e-06/0.003798, allocations: 0 / 380.5 MB, free: 484 kB / 346.7 MB Notification: Performance of FrontEnd: time 5.61e-07/0.003798, allocations: 0 / 380.5 MB, free: 484 kB / 346.7 MB Notification: Performance of Transformations before backend: time 3.637e-06/0.003802, allocations: 4 kB / 380.5 MB, free: 480 kB / 346.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.0002507/0.004053, allocations: 378 kB / 380.8 MB, free: 60 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.399e-05/0.004097, allocations: 12.03 kB / 380.9 MB, free: 48 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.575e-05/0.004132, allocations: 4.875 kB / 380.9 MB, free: 44 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.329e-05/0.004196, allocations: 104.6 kB / 381 MB, free: 15.91 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.969e-06/0.004206, allocations: 384 / 381 MB, free: 15.91 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.328e-06/0.004215, allocations: 4.375 kB / 381 MB, free: 15.91 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.115e-05/0.004296, allocations: 55.95 kB / 381 MB, free: 15.84 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.21e-06/0.004301, allocations: 192 / 381 MB, free: 15.84 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.896e-06/0.00431, allocations: 384 / 381 MB, free: 15.84 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.263e-06/0.004317, allocations: 11.94 kB / 381 MB, free: 15.83 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.78e-05/0.004335, allocations: 33.64 kB / 381.1 MB, free: 15.79 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.187e-05/0.004417, allocations: 108.6 kB / 381.2 MB, free: 15.65 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.212e-05/0.004459, allocations: 52.7 kB / 381.2 MB, free: 15.58 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.018e-05/0.004479, allocations: 41.48 kB / 381.3 MB, free: 15.53 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.518e-06/0.004484, allocations: 3.984 kB / 381.3 MB, free: 15.53 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.123e-05/0.004515, allocations: 59.09 kB / 381.3 MB, free: 15.45 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 8.32e-07/0.004516, allocations: 0 / 381.3 MB, free: 15.45 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001467/0.004663, allocations: 114.8 kB / 381.4 MB, free: 15.32 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.594e-05/0.004699, allocations: 92.97 kB / 381.5 MB, free: 15.21 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.634e-05/0.004735, allocations: 146.4 kB / 381.7 MB, free: 15.05 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.304e-06/0.004742, allocations: 25.7 kB / 381.7 MB, free: 15.02 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.428e-05/0.004766, allocations: 126.9 kB / 381.8 MB, free: 14.89 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.339e-05/0.00478, allocations: 352 / 381.8 MB, free: 14.89 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.261e-05/0.004802, allocations: 23.38 kB / 381.8 MB, free: 14.86 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.46e-05/0.004897, allocations: 492.1 kB / 382.3 MB, free: 14.37 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.759e-05/0.004915, allocations: 25.7 kB / 382.3 MB, free: 14.34 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.261e-05/0.004927, allocations: 29.7 kB / 382.4 MB, free: 14.3 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.042e-05/0.004968, allocations: 67.08 kB / 382.4 MB, free: 14.22 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.125e-06/0.004971, allocations: 4.062 kB / 382.4 MB, free: 14.21 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.683e-05/0.005028, allocations: 97.05 kB / 382.5 MB, free: 14.1 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.148e-05/0.005049, allocations: 37.64 kB / 382.6 MB, free: 14.06 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.005054, allocations: 0 / 382.6 MB, free: 14.06 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.051e-05/0.005064, allocations: 0 / 382.6 MB, free: 14.06 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.71e-07/0.005065, allocations: 0 / 382.6 MB, free: 14.06 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.476e-06/0.005074, allocations: 7.922 kB / 382.6 MB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.1e-05/0.005085, allocations: 4 kB / 382.6 MB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.35e-06/0.00509, allocations: 0 / 382.6 MB, free: 14.05 MB / 362.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 6.255e-05/0.005153, allocations: 178.3 kB / 382.8 MB, free: 13.86 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.022e-06/0.005159, allocations: 8.031 kB / 382.8 MB, free: 13.85 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.113e-06/0.005166, allocations: 3 kB / 382.8 MB, free: 13.85 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.302e-06/0.005167, allocations: 0 / 382.8 MB, free: 13.85 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.966e-06/0.00517, allocations: 0 / 382.8 MB, free: 13.85 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.397e-06/0.005173, allocations: 3.938 kB / 382.8 MB, free: 13.84 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.76e-05/0.005221, allocations: 112.6 kB / 382.9 MB, free: 13.7 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.41e-07/0.005221, allocations: 0 / 382.9 MB, free: 13.7 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.71e-07/0.005222, allocations: 0 / 382.9 MB, free: 13.7 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.72e-07/0.005223, allocations: 3.938 kB / 382.9 MB, free: 13.7 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.41e-06/0.005228, allocations: 0 / 382.9 MB, free: 13.7 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.4e-07/0.005229, allocations: 0 / 382.9 MB, free: 13.7 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.005229, allocations: 4 kB / 382.9 MB, free: 13.69 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.036e-05/0.005309, allocations: 139.7 kB / 383 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.346e-06/0.005313, allocations: 0 / 383 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.179e-05/0.005325, allocations: 0 / 383 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.429e-06/0.005329, allocations: 0 / 383 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.346e-05/0.005343, allocations: 8 kB / 383 MB, free: 13.51 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.473e-06/0.005344, allocations: 0 / 383 MB, free: 13.51 MB / 362.7 MB Notification: Performance of sorting global known variables: time 2.522e-05/0.005369, allocations: 123.1 kB / 383.2 MB, free: 13.39 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005369, allocations: 0 / 383.2 MB, free: 13.39 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001326/0.005502, allocations: 15.94 kB / 383.2 MB, free: 13.38 MB / 362.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.0002329/0.005735, allocations: 147.8 kB / 383.3 MB, free: 13.23 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 9.097e-05/0.005826, allocations: 126.5 kB / 383.4 MB, free: 13.08 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.472e-06/0.005827, allocations: 0 / 383.4 MB, free: 13.08 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.692e-05/0.005854, allocations: 88.8 kB / 383.5 MB, free: 12.97 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.078e-05/0.005945, allocations: 10.27 kB / 383.5 MB, free: 12.96 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001604/0.006105, allocations: 117.6 kB / 383.7 MB, free: 12.81 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.961e-05/0.006135, allocations: 59.48 kB / 383.7 MB, free: 12.73 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.841e-06/0.006141, allocations: 0 / 383.7 MB, free: 12.73 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.118e-05/0.006152, allocations: 8.5 kB / 383.7 MB, free: 12.72 MB / 362.7 MB Notification: Performance of SimCode: time 4.91e-07/0.006152, allocations: 0 / 383.7 MB, free: 12.72 MB / 362.7 MB Notification: Performance of Templates: time 0.0021/0.008253, allocations: 0.6913 MB / 384.4 MB, free: 12.03 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.sim & ./ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/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: 3.0214129760861397]