Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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.001705/0.001705, allocations: 108.4 kB / 21.17 MB, free: 0.7852 MB / 14.72 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.00212/0.00212, allocations: 217.3 kB / 24.47 MB, free: 4.359 MB / 14.72 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.48/1.48, allocations: 230.2 MB / 257.8 MB, free: 8.508 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2184/0.2184, allocations: 46.9 MB / 361.1 MB, free: 4.648 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions") translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002318/0.002318, allocations: 75.88 kB / 0.4967 GB, free: 7.852 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2908/0.2931, allocations: 65.98 MB / 0.5612 GB, free: 5.035 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001488/0.2946, allocations: 0.4969 MB / 0.5617 GB, free: 4.539 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002315/0.2969, allocations: 1.66 MB / 0.5633 GB, free: 2.863 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.589e-05/0.2969, allocations: 0 / 0.5633 GB, free: 2.863 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.179e-05/0.2969, allocations: 0 / 0.5633 GB, free: 2.863 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.434e-06/0.2969, allocations: 3.938 kB / 0.5633 GB, free: 2.859 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.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.0006367/0.2976, allocations: 163.5 kB / 0.5634 GB, free: 2.699 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.53e-05/0.2976, allocations: 4 kB / 0.5634 GB, free: 2.695 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.543e-05/0.2977, allocations: 3.984 kB / 0.5634 GB, free: 2.691 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.19e-05/0.2977, allocations: 3.938 kB / 0.5634 GB, free: 2.688 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.076e-05/0.2977, allocations: 7.938 kB / 0.5635 GB, free: 2.68 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.853e-06/0.2977, allocations: 0 / 0.5635 GB, free: 2.68 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003496/0.298, allocations: 119.8 kB / 0.5636 GB, free: 2.562 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.312e-06/0.298, allocations: 4 kB / 0.5636 GB, free: 2.559 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.725e-05/0.2981, allocations: 4 kB / 0.5636 GB, free: 2.555 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001075/0.2982, allocations: 38.61 kB / 0.5636 GB, free: 2.52 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.2982, allocations: 0 / 0.5636 GB, free: 2.52 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.2982, allocations: 0 / 0.5636 GB, free: 2.52 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.296e-06/0.2982, allocations: 0 / 0.5636 GB, free: 2.52 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.0003584/0.2985, allocations: 349.2 kB / 0.5639 GB, free: 2.125 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.093e-05/0.2986, allocations: 8.031 kB / 0.564 GB, free: 2.117 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.646e-05/0.2986, allocations: 4.938 kB / 0.564 GB, free: 2.113 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001288/0.2987, allocations: 160.4 kB / 0.5641 GB, free: 1.918 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.208e-05/0.2988, allocations: 4.375 kB / 0.5641 GB, free: 1.914 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.632e-06/0.2988, allocations: 384 / 0.5641 GB, free: 1.914 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.906e-05/0.2988, allocations: 41.94 kB / 0.5642 GB, free: 1.867 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.534e-06/0.2988, allocations: 0 / 0.5642 GB, free: 1.867 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.725e-06/0.2989, allocations: 0 / 0.5642 GB, free: 1.867 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.667e-06/0.2989, allocations: 0 / 0.5642 GB, free: 1.867 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.825e-05/0.2989, allocations: 3.938 kB / 0.5642 GB, free: 1.863 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001518/0.299, allocations: 153.6 kB / 0.5643 GB, free: 1.664 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.091e-05/0.2991, allocations: 18.58 kB / 0.5643 GB, free: 1.637 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.645e-05/0.2991, allocations: 8.844 kB / 0.5643 GB, free: 1.625 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.645e-06/0.2991, allocations: 0 / 0.5643 GB, free: 1.625 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.888e-05/0.2992, allocations: 64.3 kB / 0.5644 GB, free: 1.547 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.41e-07/0.2992, allocations: 0 / 0.5644 GB, free: 1.547 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001534/0.2993, allocations: 67.34 kB / 0.5645 GB, free: 1.469 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.649e-05/0.2994, allocations: 77.11 kB / 0.5645 GB, free: 1.375 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.846e-05/0.2994, allocations: 101.9 kB / 0.5646 GB, free: 1.266 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.503e-05/0.2994, allocations: 25.7 kB / 0.5647 GB, free: 1.234 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.249e-05/0.2995, allocations: 80.14 kB / 0.5647 GB, free: 1.152 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.649e-05/0.2995, allocations: 0 / 0.5647 GB, free: 1.152 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.974e-05/0.2995, allocations: 13.72 kB / 0.5647 GB, free: 1.133 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001467/0.2997, allocations: 314.8 kB / 0.565 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.055e-06/0.2997, allocations: 0 / 0.565 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.775e-06/0.2997, allocations: 4 kB / 0.565 GB, free: 0.8125 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.189e-05/0.2997, allocations: 60.33 kB / 0.5651 GB, free: 0.7383 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.442e-06/0.2997, allocations: 0 / 0.5651 GB, free: 0.7383 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.143e-05/0.2998, allocations: 67.33 kB / 0.5652 GB, free: 0.6602 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.362e-05/0.2998, allocations: 37.64 kB / 0.5652 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.326e-06/0.2998, allocations: 0 / 0.5652 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.061e-05/0.2998, allocations: 3.938 kB / 0.5652 GB, free: 0.6133 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.82e-07/0.2999, allocations: 0 / 0.5652 GB, free: 0.6133 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.547e-06/0.2999, allocations: 0 / 0.5652 GB, free: 0.6133 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.343e-05/0.2999, allocations: 0 / 0.5652 GB, free: 0.6133 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.27e-06/0.2999, allocations: 4.031 kB / 0.5652 GB, free: 0.6094 MB / 398.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.841e-05/0.3, allocations: 143.5 kB / 0.5654 GB, free: 464 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.748e-06/0.3, allocations: 3.938 kB / 0.5654 GB, free: 460 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.927e-06/0.3, allocations: 3.125 kB / 0.5654 GB, free: 456 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.062e-06/0.3, allocations: 0 / 0.5654 GB, free: 456 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.466e-06/0.3, allocations: 4 kB / 0.5654 GB, free: 452 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.773e-06/0.3, allocations: 3.938 kB / 0.5654 GB, free: 448 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001069/0.3001, allocations: 141.7 kB / 0.5655 GB, free: 256 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.3001, allocations: 3.984 kB / 0.5655 GB, free: 252 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.194e-06/0.3001, allocations: 8 kB / 0.5655 GB, free: 244 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.925e-06/0.3001, allocations: 3.938 kB / 0.5655 GB, free: 240 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.414e-06/0.3001, allocations: 4 kB / 0.5655 GB, free: 236 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.61e-07/0.3001, allocations: 0 / 0.5655 GB, free: 236 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.22e-07/0.3001, allocations: 0 / 0.5655 GB, free: 236 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001058/0.3002, allocations: 94.77 kB / 0.5656 GB, free: 116 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.972e-05/0.3003, allocations: 77.11 kB / 0.5657 GB, free: 20 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.384e-05/0.3003, allocations: 7.922 kB / 0.5657 GB, free: 12 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.787e-06/0.3003, allocations: 4.031 kB / 0.5657 GB, free: 8 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.586e-06/0.3003, allocations: 0 / 0.5657 GB, free: 8 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.528e-06/0.3003, allocations: 4 kB / 0.5657 GB, free: 4 kB / 398.1 MB Notification: Performance of sorting global known variables: time 4.908e-05/0.3004, allocations: 79.28 kB / 0.5658 GB, free: 15.93 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3004, allocations: 0 / 0.5658 GB, free: 15.93 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002061/0.3006, allocations: 16 kB / 0.5658 GB, free: 15.91 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.0002869/0.3008, allocations: 151.1 kB / 0.5659 GB, free: 15.76 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 9.796e-05/0.3009, allocations: 67.33 kB / 0.566 GB, free: 15.68 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.664e-06/0.3009, allocations: 0 / 0.566 GB, free: 15.68 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.349e-05/0.301, allocations: 55.41 kB / 0.5661 GB, free: 15.62 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001182/0.3011, allocations: 4 kB / 0.5661 GB, free: 15.61 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001714/0.3013, allocations: 85.08 kB / 0.5661 GB, free: 15.5 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003198/0.3016, allocations: 0.6729 MB / 0.5668 GB, free: 14.8 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 7.294e-06/0.3016, allocations: 3.984 kB / 0.5668 GB, free: 14.8 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.363e-05/0.3016, allocations: 11.56 kB / 0.5668 GB, free: 14.79 MB / 414.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3016, allocations: 0 / 0.5668 GB, free: 14.79 MB / 414.1 MB Notification: Performance of Templates: time 0.003101/0.3047, allocations: 0.6407 MB / 0.5674 GB, free: 14.15 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/TestScalarFunctions/TestScalarFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_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.846386157907546]