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.001956/0.001956, allocations: 103.5 kB / 20.97 MB, free: 3.453 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.002164/0.002164, allocations: 156.8 kB / 24.27 MB, free: 160 kB / 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.571/1.571, allocations: 177 MB / 204.5 MB, free: 5.641 MB / 186.7 MB " [Timeout remaining time 178] 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.406/0.406, allocations: 34.25 MB / 295.2 MB, free: 0.6445 MB / 266.7 MB " [Timeout remaining time 179] 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.653e-06/1.653e-06, allocations: 0 / 377.2 MB, free: 2.953 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.601e-05/2.766e-05, allocations: 4 kB / 377.2 MB, free: 2.949 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001601/0.001628, allocations: 0.4893 MB / 377.7 MB, free: 2.457 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002618/0.004246, allocations: 1.626 MB / 379.3 MB, free: 0.8125 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.458e-05/0.004271, allocations: 0 / 379.3 MB, free: 0.8125 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.107e-05/0.004282, allocations: 0 / 379.3 MB, free: 0.8125 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 4.629e-06/0.004286, allocations: 4 kB / 379.3 MB, free: 0.8086 MB / 346.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.0006666/0.004953, allocations: 159.1 kB / 379.5 MB, free: 0.6523 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 5.438e-05/0.005007, allocations: 0 / 379.5 MB, free: 0.6523 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.2e-05/0.005049, allocations: 4 kB / 379.5 MB, free: 0.6484 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.587e-05/0.005085, allocations: 0 / 379.5 MB, free: 0.6484 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.191e-05/0.005117, allocations: 7.984 kB / 379.5 MB, free: 0.6406 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 9.878e-06/0.005127, allocations: 0 / 379.5 MB, free: 0.6406 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004113/0.005538, allocations: 119.9 kB / 379.6 MB, free: 0.5234 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 6.443e-06/0.005545, allocations: 3.938 kB / 379.6 MB, free: 0.5195 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 1.58e-05/0.005561, allocations: 0 / 379.6 MB, free: 0.5195 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001367/0.005697, allocations: 47.83 kB / 379.6 MB, free: 484 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.204e-06/0.0057, allocations: 0 / 379.6 MB, free: 484 kB / 346.7 MB Notification: Performance of FrontEnd: time 6.51e-07/0.0057, allocations: 0 / 379.6 MB, free: 484 kB / 346.7 MB Notification: Performance of Transformations before backend: time 3.477e-06/0.005704, allocations: 0 / 379.6 MB, free: 484 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.0003992/0.006103, allocations: 378.1 kB / 380 MB, free: 64 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.381e-05/0.006137, allocations: 8.031 kB / 380 MB, free: 56 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.825e-05/0.006175, allocations: 4.922 kB / 380 MB, free: 52 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001176/0.006293, allocations: 108.6 kB / 380.1 MB, free: 15.92 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.121e-05/0.006304, allocations: 4.375 kB / 380.1 MB, free: 15.91 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.432e-06/0.00631, allocations: 384 / 380.1 MB, free: 15.91 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001104/0.006421, allocations: 55.97 kB / 380.2 MB, free: 15.85 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.997e-06/0.00643, allocations: 192 / 380.2 MB, free: 15.85 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.564e-06/0.006437, allocations: 384 / 380.2 MB, free: 15.85 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.282e-06/0.006443, allocations: 3.938 kB / 380.2 MB, free: 15.84 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.407e-05/0.006477, allocations: 29.64 kB / 380.2 MB, free: 15.81 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001382/0.006616, allocations: 120.6 kB / 380.3 MB, free: 15.66 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.744e-05/0.006693, allocations: 52.8 kB / 380.4 MB, free: 15.59 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.859e-05/0.006732, allocations: 37.39 kB / 380.4 MB, free: 15.54 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.536e-06/0.00674, allocations: 0 / 380.4 MB, free: 15.54 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.863e-05/0.006799, allocations: 63.16 kB / 380.5 MB, free: 15.46 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 7.52e-07/0.0068, allocations: 0 / 380.5 MB, free: 15.46 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.000222/0.007022, allocations: 126.7 kB / 380.6 MB, free: 15.31 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.669e-05/0.007088, allocations: 81.05 kB / 380.7 MB, free: 15.21 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.851e-05/0.007177, allocations: 142.2 kB / 380.8 MB, free: 15.06 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.742e-05/0.007194, allocations: 25.83 kB / 380.9 MB, free: 15.03 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.447e-05/0.007269, allocations: 130.9 kB / 381 MB, free: 14.9 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.782e-05/0.007286, allocations: 7.938 kB / 381 MB, free: 14.89 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.593e-05/0.007322, allocations: 19.38 kB / 381 MB, free: 14.86 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000255/0.007577, allocations: 496.1 kB / 381.5 MB, free: 14.37 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.598e-05/0.007603, allocations: 29.7 kB / 381.5 MB, free: 14.33 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.195e-05/0.007625, allocations: 25.7 kB / 381.5 MB, free: 14.3 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.269e-05/0.007688, allocations: 63.09 kB / 381.6 MB, free: 14.22 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-06/0.007689, allocations: 0 / 381.6 MB, free: 14.22 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001046/0.007794, allocations: 97.03 kB / 381.7 MB, free: 14.11 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.607e-05/0.00783, allocations: 37.8 kB / 381.7 MB, free: 14.07 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.138e-06/0.007834, allocations: 0 / 381.7 MB, free: 14.07 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.151e-05/0.007846, allocations: 0 / 381.7 MB, free: 14.07 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.91e-07/0.007846, allocations: 0 / 381.7 MB, free: 14.07 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.365e-06/0.007855, allocations: 3.938 kB / 381.7 MB, free: 14.06 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.189e-05/0.007866, allocations: 0 / 381.7 MB, free: 14.06 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.721e-06/0.007872, allocations: 0 / 381.7 MB, free: 14.06 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 0.000123/0.007995, allocations: 182.3 kB / 381.9 MB, free: 13.87 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.854e-05/0.008014, allocations: 11.94 kB / 381.9 MB, free: 13.86 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.493e-06/0.00802, allocations: 3 kB / 381.9 MB, free: 13.86 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.253e-06/0.008022, allocations: 4 kB / 381.9 MB, free: 13.85 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.996e-06/0.008025, allocations: 0 / 381.9 MB, free: 13.85 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.319e-06/0.008029, allocations: 3.938 kB / 381.9 MB, free: 13.85 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.609e-05/0.008125, allocations: 108.6 kB / 382.1 MB, free: 13.71 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.008128, allocations: 4 kB / 382.1 MB, free: 13.7 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.756e-06/0.008131, allocations: 4 kB / 382.1 MB, free: 13.7 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.062e-06/0.008132, allocations: 0 / 382.1 MB, free: 13.7 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.4e-06/0.008137, allocations: 0 / 382.1 MB, free: 13.7 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.01e-07/0.008138, allocations: 0 / 382.1 MB, free: 13.7 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.008139, allocations: 0 / 382.1 MB, free: 13.7 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001608/0.0083, allocations: 143.7 kB / 382.2 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.667e-06/0.008303, allocations: 0 / 382.2 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.287e-05/0.008316, allocations: 3.984 kB / 382.2 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.166e-06/0.008324, allocations: 3.938 kB / 382.2 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.399e-05/0.008338, allocations: 0 / 382.2 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.725e-06/0.008341, allocations: 4 kB / 382.2 MB, free: 13.51 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.558e-05/0.008407, allocations: 123.1 kB / 382.3 MB, free: 13.39 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.008407, allocations: 0 / 382.3 MB, free: 13.39 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001972/0.008604, allocations: 12 kB / 382.3 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.000369/0.008973, allocations: 157.1 kB / 382.5 MB, free: 13.23 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000171/0.009144, allocations: 122.4 kB / 382.6 MB, free: 13.08 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.009146, allocations: 4 kB / 382.6 MB, free: 13.07 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.895e-05/0.009215, allocations: 88.8 kB / 382.7 MB, free: 12.96 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001226/0.009337, allocations: 3.938 kB / 382.7 MB, free: 12.96 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002175/0.009555, allocations: 113.7 kB / 382.8 MB, free: 12.81 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.602e-05/0.009621, allocations: 59.34 kB / 382.9 MB, free: 12.73 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.729e-06/0.009625, allocations: 128 / 382.9 MB, free: 12.73 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.357e-05/0.009639, allocations: 12.5 kB / 382.9 MB, free: 12.72 MB / 362.7 MB Notification: Performance of SimCode: time 8.12e-07/0.00964, allocations: 0 / 382.9 MB, free: 12.72 MB / 362.7 MB Notification: Performance of Templates: time 0.003557/0.0132, allocations: 0.6804 MB / 383.6 MB, free: 12.04 MB / 362.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.867160032968968]