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.0014/0.0014, allocations: 111.1 kB / 20.44 MB, free: 1.176 MB / 14.72 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.001662/0.001662, allocations: 212.4 kB / 23.73 MB, free: 4.387 MB / 14.72 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.496/1.496, allocations: 230.6 MB / 257.5 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] 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.2605/0.2605, allocations: 46.95 MB / 360.9 MB, free: 4.047 MB / 286.1 MB " [Timeout remaining time 179] 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 0.002187/0.002187, allocations: 71.89 kB / 0.4966 GB, free: 7.246 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3796/0.3817, allocations: 66.04 MB / 0.5611 GB, free: 4.215 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.00175/0.3835, allocations: 496 kB / 0.5615 GB, free: 3.73 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002551/0.3861, allocations: 1.579 MB / 0.5631 GB, free: 2.137 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.21e-05/0.3861, allocations: 3.938 kB / 0.5631 GB, free: 2.133 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.042e-05/0.3861, allocations: 0 / 0.5631 GB, free: 2.133 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.181e-06/0.3861, allocations: 0 / 0.5631 GB, free: 2.133 MB / 398.1 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.0007589/0.3869, allocations: 166.9 kB / 0.5632 GB, free: 1.973 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.439e-05/0.3869, allocations: 8 kB / 0.5632 GB, free: 1.965 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.8e-05/0.387, allocations: 0 / 0.5632 GB, free: 1.965 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.751e-05/0.387, allocations: 0 / 0.5632 GB, free: 1.965 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.324e-05/0.387, allocations: 0 / 0.5632 GB, free: 1.965 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.614e-06/0.387, allocations: 4 kB / 0.5632 GB, free: 1.961 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004361/0.3875, allocations: 123.8 kB / 0.5634 GB, free: 1.84 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.747e-06/0.3875, allocations: 0 / 0.5634 GB, free: 1.84 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.783e-05/0.3875, allocations: 0 / 0.5634 GB, free: 1.84 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000126/0.3876, allocations: 46.56 kB / 0.5634 GB, free: 1.797 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.3876, allocations: 0 / 0.5634 GB, free: 1.797 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3876, allocations: 0 / 0.5634 GB, free: 1.797 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.402e-06/0.3876, allocations: 0 / 0.5634 GB, free: 1.797 MB / 398.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.0003411/0.388, allocations: 267.8 kB / 0.5637 GB, free: 1.504 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.787e-05/0.388, allocations: 12.03 kB / 0.5637 GB, free: 1.492 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.021e-05/0.388, allocations: 8.922 kB / 0.5637 GB, free: 1.484 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.91e-05/0.3881, allocations: 106.5 kB / 0.5638 GB, free: 1.355 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.404e-05/0.3881, allocations: 384 / 0.5638 GB, free: 1.355 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.481e-05/0.3882, allocations: 4.375 kB / 0.5638 GB, free: 1.352 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001083/0.3883, allocations: 55.72 kB / 0.5638 GB, free: 1.285 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.767e-06/0.3883, allocations: 0 / 0.5638 GB, free: 1.285 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.257e-06/0.3883, allocations: 0 / 0.5638 GB, free: 1.285 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.653e-06/0.3883, allocations: 4 kB / 0.5639 GB, free: 1.281 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.438e-05/0.3883, allocations: 29.64 kB / 0.5639 GB, free: 1.246 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001793/0.3885, allocations: 101.3 kB / 0.564 GB, free: 1.117 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.096e-05/0.3886, allocations: 48.31 kB / 0.564 GB, free: 1.055 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.738e-05/0.3886, allocations: 38.55 kB / 0.5641 GB, free: 1.008 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.22e-05/0.3886, allocations: 4.062 kB / 0.5641 GB, free: 1.004 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.141e-05/0.3887, allocations: 56.27 kB / 0.5641 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.123e-06/0.3887, allocations: 0 / 0.5641 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002267/0.3889, allocations: 126.7 kB / 0.5642 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.515e-05/0.389, allocations: 77.11 kB / 0.5643 GB, free: 0.6914 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.985e-05/0.389, allocations: 97.75 kB / 0.5644 GB, free: 0.5859 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.825e-05/0.3891, allocations: 29.7 kB / 0.5644 GB, free: 0.5508 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.402e-05/0.3891, allocations: 80.14 kB / 0.5645 GB, free: 480 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.914e-05/0.3891, allocations: 0 / 0.5645 GB, free: 480 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.892e-05/0.3891, allocations: 9.844 kB / 0.5645 GB, free: 464 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001392/0.3893, allocations: 330.8 kB / 0.5648 GB, free: 124 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.086e-05/0.3893, allocations: 25.7 kB / 0.5649 GB, free: 92 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.997e-05/0.3893, allocations: 29.7 kB / 0.5649 GB, free: 56 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.945e-05/0.3894, allocations: 60.27 kB / 0.5649 GB, free: 15.98 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.402e-06/0.3894, allocations: 0 / 0.5649 GB, free: 15.98 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.854e-05/0.3895, allocations: 97.03 kB / 0.565 GB, free: 15.87 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.915e-05/0.3895, allocations: 33.7 kB / 0.5651 GB, free: 15.83 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/0.3895, allocations: 0 / 0.5651 GB, free: 15.83 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.571e-05/0.3896, allocations: 4.031 kB / 0.5651 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.41e-07/0.3896, allocations: 4 kB / 0.5651 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.416e-06/0.3896, allocations: 7.984 kB / 0.5651 GB, free: 15.81 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.246e-05/0.3896, allocations: 0 / 0.5651 GB, free: 15.81 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.843e-06/0.3896, allocations: 0 / 0.5651 GB, free: 15.81 MB / 414.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 9.767e-05/0.3897, allocations: 135.5 kB / 0.5652 GB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.137e-05/0.3897, allocations: 3.984 kB / 0.5652 GB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.436e-05/0.3897, allocations: 6.938 kB / 0.5652 GB, free: 15.65 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.357e-06/0.3897, allocations: 4 kB / 0.5652 GB, free: 15.65 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.3897, allocations: 0 / 0.5652 GB, free: 15.65 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.804e-06/0.3897, allocations: 0 / 0.5652 GB, free: 15.65 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.068e-05/0.3898, allocations: 97.33 kB / 0.5653 GB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.01e-07/0.3898, allocations: 0 / 0.5653 GB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4e-07/0.3898, allocations: 0 / 0.5653 GB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.247e-06/0.3898, allocations: 4 kB / 0.5653 GB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.963e-06/0.3898, allocations: 0 / 0.5653 GB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.3898, allocations: 3.938 kB / 0.5653 GB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.3898, allocations: 3.984 kB / 0.5653 GB, free: 15.51 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000222/0.3901, allocations: 120.5 kB / 0.5654 GB, free: 15.36 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.697e-06/0.3901, allocations: 0 / 0.5654 GB, free: 15.36 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.654e-05/0.3901, allocations: 7.984 kB / 0.5655 GB, free: 15.36 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.139e-05/0.3901, allocations: 7.969 kB / 0.5655 GB, free: 15.35 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.551e-05/0.3901, allocations: 0 / 0.5655 GB, free: 15.35 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.495e-06/0.3901, allocations: 3.938 kB / 0.5655 GB, free: 15.34 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.637e-05/0.3901, allocations: 75.28 kB / 0.5655 GB, free: 15.27 MB / 414.1 MB Notification: Performance of sort global known variables: time 5e-08/0.3901, allocations: 0 / 0.5655 GB, free: 15.27 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002172/0.3904, allocations: 19.94 kB / 0.5656 GB, free: 15.25 MB / 414.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.0003214/0.3907, allocations: 140.3 kB / 0.5657 GB, free: 15.11 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001339/0.3908, allocations: 110.8 kB / 0.5658 GB, free: 14.98 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.3908, allocations: 0 / 0.5658 GB, free: 14.98 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.88e-05/0.3909, allocations: 89.03 kB / 0.5659 GB, free: 14.87 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001292/0.391, allocations: 4 kB / 0.5659 GB, free: 14.87 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002008/0.3912, allocations: 110.8 kB / 0.566 GB, free: 14.73 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.413e-05/0.3913, allocations: 59.34 kB / 0.566 GB, free: 14.65 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.769e-06/0.3913, allocations: 0 / 0.566 GB, free: 14.65 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.372e-05/0.3913, allocations: 7.438 kB / 0.5661 GB, free: 14.64 MB / 414.1 MB Notification: Performance of SimCode: time 3.4e-07/0.3913, allocations: 4 kB / 0.5661 GB, free: 14.64 MB / 414.1 MB Notification: Performance of Templates: time 0.003202/0.3945, allocations: 0.6485 MB / 0.5667 GB, free: 13.99 MB / 414.1 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_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: 5.3128654807806015]