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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001211/0.001211, allocations: 85.91 kB / 22.21 MB, free: 2.285 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001198/0.001198, allocations: 159.2 kB / 25.61 MB, free: 8.582 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.008/1.008, allocations: 177 MB / 205.9 MB, free: 4.457 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1643/0.1643, allocations: 34.88 MB / 297.4 MB, free: 13.36 MB / 282.7 MB " [Timeout remaining time 180] 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=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions") translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.162e-06/1.162e-06, allocations: 0 / 380 MB, free: 22.79 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.553e-05/2.669e-05, allocations: 6.375 kB / 380 MB, free: 22.78 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001024/0.001051, allocations: 0.4921 MB / 380.5 MB, free: 22.29 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001497/0.002548, allocations: 1.624 MB / 382.1 MB, free: 20.65 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.695e-05/0.002575, allocations: 0 / 382.1 MB, free: 20.65 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 1.701e-05/0.002592, allocations: 0 / 382.1 MB, free: 20.65 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 6.983e-06/0.002599, allocations: 4 kB / 382.1 MB, free: 20.65 MB / 314.7 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.0005224/0.003121, allocations: 167.1 kB / 382.3 MB, free: 20.48 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 6.46e-05/0.003186, allocations: 4 kB / 382.3 MB, free: 20.48 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.462e-05/0.003231, allocations: 0 / 382.3 MB, free: 20.48 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.946e-05/0.00326, allocations: 0 / 382.3 MB, free: 20.48 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.182e-05/0.003292, allocations: 4 kB / 382.3 MB, free: 20.48 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 9.638e-06/0.003301, allocations: 3.938 kB / 382.3 MB, free: 20.47 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003265/0.003628, allocations: 119.9 kB / 382.4 MB, free: 20.36 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 9.588e-06/0.003638, allocations: 0 / 382.4 MB, free: 20.36 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 2.1e-05/0.003659, allocations: 0 / 382.4 MB, free: 20.36 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001114/0.00377, allocations: 47.83 kB / 382.4 MB, free: 20.31 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.264e-06/0.003772, allocations: 0 / 382.4 MB, free: 20.31 MB / 314.7 MB Notification: Performance of FrontEnd: time 5.71e-07/0.003773, allocations: 0 / 382.4 MB, free: 20.31 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.332e-06/0.003779, allocations: 0 / 382.4 MB, free: 20.31 MB / 314.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.0002173/0.003996, allocations: 382 kB / 382.8 MB, free: 19.89 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.507e-05/0.004032, allocations: 8.031 kB / 382.8 MB, free: 19.89 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.836e-05/0.00406, allocations: 0.9375 kB / 382.8 MB, free: 19.89 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.341e-05/0.004103, allocations: 108.6 kB / 382.9 MB, free: 19.75 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.417e-06/0.004113, allocations: 384 / 382.9 MB, free: 19.75 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.901e-06/0.004119, allocations: 384 / 382.9 MB, free: 19.75 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.133e-05/0.00419, allocations: 59.95 kB / 383 MB, free: 19.68 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.444e-06/0.004197, allocations: 192 / 383 MB, free: 19.68 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.995e-06/0.004205, allocations: 4.359 kB / 383 MB, free: 19.68 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.021e-06/0.004211, allocations: 7.875 kB / 383 MB, free: 19.67 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.687e-05/0.004228, allocations: 37.64 kB / 383 MB, free: 19.63 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.464e-05/0.004303, allocations: 93.27 kB / 383.1 MB, free: 19.51 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.379e-05/0.004347, allocations: 52.8 kB / 383.2 MB, free: 19.44 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.43e-05/0.004361, allocations: 37.38 kB / 383.2 MB, free: 19.39 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.966e-06/0.004364, allocations: 0 / 383.2 MB, free: 19.39 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.267e-05/0.004387, allocations: 63.16 kB / 383.3 MB, free: 19.32 MB / 314.7 MB Notification: Performance of pre-optimization done (n=1): time 7.01e-07/0.004387, allocations: 0 / 383.3 MB, free: 19.32 MB / 314.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001295/0.004517, allocations: 114.8 kB / 383.4 MB, free: 19.18 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.514e-05/0.004542, allocations: 85.09 kB / 383.5 MB, free: 19.08 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.311e-05/0.004565, allocations: 142.2 kB / 383.6 MB, free: 18.93 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.029e-06/0.00457, allocations: 29.83 kB / 383.6 MB, free: 18.89 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.214e-05/0.004582, allocations: 126.9 kB / 383.8 MB, free: 18.76 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.586e-05/0.004598, allocations: 0 / 383.8 MB, free: 18.76 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.962e-05/0.004618, allocations: 19.38 kB / 383.8 MB, free: 18.73 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.102e-05/0.004669, allocations: 0.4883 MB / 384.3 MB, free: 18.23 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.208e-05/0.004681, allocations: 29.7 kB / 384.3 MB, free: 18.2 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.514e-06/0.004688, allocations: 25.7 kB / 384.3 MB, free: 18.17 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.408e-05/0.004722, allocations: 67.08 kB / 384.4 MB, free: 18.09 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.004724, allocations: 0 / 384.4 MB, free: 18.09 MB / 314.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.583e-05/0.00477, allocations: 93.14 kB / 384.5 MB, free: 17.98 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.038e-05/0.00479, allocations: 33.7 kB / 384.5 MB, free: 17.94 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.459e-06/0.004795, allocations: 0 / 384.5 MB, free: 17.94 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.556e-06/0.004803, allocations: 0 / 384.5 MB, free: 17.94 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.664e-06/0.004805, allocations: 0 / 384.5 MB, free: 17.94 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.719e-06/0.00481, allocations: 7.984 kB / 384.5 MB, free: 17.93 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.234e-05/0.004822, allocations: 3.938 kB / 384.5 MB, free: 17.93 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.52e-06/0.004827, allocations: 0 / 384.5 MB, free: 17.93 MB / 314.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.214e-05/0.00488, allocations: 182.3 kB / 384.7 MB, free: 17.73 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.007e-06/0.004884, allocations: 352 / 384.7 MB, free: 17.73 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.927e-06/0.004893, allocations: 3 kB / 384.7 MB, free: 17.73 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.004895, allocations: 4 kB / 384.7 MB, free: 17.73 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.866e-06/0.004897, allocations: 4 kB / 384.7 MB, free: 17.72 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.826e-06/0.0049, allocations: 0 / 384.7 MB, free: 17.72 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.398e-05/0.004944, allocations: 105.1 kB / 384.8 MB, free: 17.59 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.11e-07/0.004945, allocations: 0 / 384.8 MB, free: 17.59 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.81e-07/0.004946, allocations: 3.938 kB / 384.8 MB, free: 17.59 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.81e-07/0.004946, allocations: 0 / 384.8 MB, free: 17.59 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.298e-06/0.004951, allocations: 0 / 384.8 MB, free: 17.59 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.004952, allocations: 7.984 kB / 384.8 MB, free: 17.58 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.004952, allocations: 0 / 384.8 MB, free: 17.58 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.677e-05/0.005019, allocations: 147.7 kB / 385 MB, free: 17.4 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.937e-06/0.005023, allocations: 0 / 385 MB, free: 17.4 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.598e-06/0.005033, allocations: 0 / 385 MB, free: 17.4 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.52e-06/0.005038, allocations: 4 kB / 385 MB, free: 17.4 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.949e-06/0.005048, allocations: 0 / 385 MB, free: 17.4 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.164e-06/0.00505, allocations: 0 / 385 MB, free: 17.4 MB / 314.7 MB Notification: Performance of sorting global known variables: time 1.759e-05/0.005068, allocations: 119.2 kB / 385.1 MB, free: 17.28 MB / 314.7 MB Notification: Performance of sort global known variables: time 4e-08/0.005068, allocations: 0 / 385.1 MB, free: 17.28 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0001349/0.005203, allocations: 16 kB / 385.1 MB, free: 17.27 MB / 314.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.0002469/0.00545, allocations: 153.2 kB / 385.3 MB, free: 17.12 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 8.514e-05/0.005535, allocations: 126.4 kB / 385.4 MB, free: 16.96 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.263e-06/0.005536, allocations: 0 / 385.4 MB, free: 16.96 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 1.777e-05/0.005554, allocations: 88.8 kB / 385.5 MB, free: 16.86 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.227e-05/0.005646, allocations: 3.938 kB / 385.5 MB, free: 16.85 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001423/0.005788, allocations: 107.6 kB / 385.6 MB, free: 16.71 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.293e-05/0.005811, allocations: 55.22 kB / 385.6 MB, free: 16.64 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 5.54e-06/0.005817, allocations: 128 / 385.6 MB, free: 16.64 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.89e-05/0.005846, allocations: 82.2 kB / 385.7 MB, free: 16.55 MB / 314.7 MB Notification: Performance of SimCode: time 5.51e-07/0.005846, allocations: 0 / 385.7 MB, free: 16.55 MB / 314.7 MB Notification: Performance of Templates: time 0.002104/0.00795, allocations: 0.7472 MB / 386.5 MB, free: 15.82 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_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.127278745174408]