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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) 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=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions") translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001005/0.001005, allocations: 94.33 kB / 18.01 MB, free: 5.605 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001233/0.001233, allocations: 206.7 kB / 18.93 MB, free: 4.723 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.35/1.35, allocations: 227.7 MB / 247.5 MB, free: 11.4 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2097/0.2097, allocations: 46.18 MB / 345.9 MB, free: 11.39 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002947/0.0002948, allocations: 8 kB / 420.1 MB, free: 19.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1024/0.1027, allocations: 63.57 MB / 483.7 MB, free: 4.176 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.0005313/0.1032, allocations: 225.3 kB / 483.9 MB, free: 3.953 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002095/0.1054, allocations: 1.619 MB / 485.6 MB, free: 2.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.556e-06/0.1054, allocations: 0 / 485.6 MB, free: 2.32 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.189e-05/0.1054, allocations: 0 / 485.6 MB, free: 2.32 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.829e-06/0.1054, allocations: 3.938 kB / 485.6 MB, free: 2.316 MB / 350.1 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.0005933/0.106, allocations: 135.3 kB / 485.7 MB, free: 2.188 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.089e-05/0.1061, allocations: 4 kB / 485.7 MB, free: 2.184 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.902e-05/0.1061, allocations: 3.984 kB / 485.7 MB, free: 2.18 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.368e-05/0.1061, allocations: 0 / 485.7 MB, free: 2.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.205e-05/0.1061, allocations: 4 kB / 485.7 MB, free: 2.176 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.093e-06/0.1062, allocations: 3.938 kB / 485.7 MB, free: 2.172 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002877/0.1065, allocations: 115.9 kB / 485.8 MB, free: 2.059 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.592e-06/0.1065, allocations: 0 / 485.8 MB, free: 2.059 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.618e-05/0.1065, allocations: 25.7 kB / 485.8 MB, free: 2.027 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001376/0.1066, allocations: 63.86 kB / 485.9 MB, free: 1.965 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.1067, allocations: 0 / 485.9 MB, free: 1.965 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.1067, allocations: 0 / 485.9 MB, free: 1.965 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.517e-06/0.1067, allocations: 0 / 485.9 MB, free: 1.965 MB / 350.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.0002963/0.107, allocations: 365.6 kB / 486.3 MB, free: 1.555 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.846e-05/0.107, allocations: 8.875 kB / 486.3 MB, free: 1.547 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.777e-05/0.1071, allocations: 4.938 kB / 486.3 MB, free: 1.543 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.364e-05/0.1071, allocations: 168.3 kB / 486.4 MB, free: 1.34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.174e-05/0.1072, allocations: 384 / 486.4 MB, free: 1.34 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.697e-06/0.1072, allocations: 384 / 486.4 MB, free: 1.34 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.347e-05/0.1073, allocations: 38 kB / 486.5 MB, free: 1.297 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.631e-06/0.1073, allocations: 0 / 486.5 MB, free: 1.297 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.474e-06/0.1073, allocations: 0 / 486.5 MB, free: 1.297 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.767e-06/0.1073, allocations: 0 / 486.5 MB, free: 1.297 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.894e-05/0.1073, allocations: 3.938 kB / 486.5 MB, free: 1.293 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001193/0.1074, allocations: 149.7 kB / 486.6 MB, free: 1.098 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.788e-05/0.1075, allocations: 18.58 kB / 486.7 MB, free: 1.07 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.557e-05/0.1075, allocations: 12.78 kB / 486.7 MB, free: 1.055 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.901e-06/0.1075, allocations: 96 / 486.7 MB, free: 1.055 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.15e-05/0.1076, allocations: 64.2 kB / 486.7 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.42e-07/0.1076, allocations: 0 / 486.7 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001497/0.1077, allocations: 71.33 kB / 486.8 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.521e-05/0.1078, allocations: 77.23 kB / 486.9 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.632e-05/0.1078, allocations: 97.84 kB / 487 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.076e-05/0.1079, allocations: 25.7 kB / 487 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.512e-05/0.1079, allocations: 80.14 kB / 487.1 MB, free: 0.582 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.474e-05/0.1079, allocations: 0 / 487.1 MB, free: 0.582 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.84e-05/0.1079, allocations: 13.72 kB / 487.1 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.7e-05/0.108, allocations: 314.8 kB / 487.4 MB, free: 252 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.566e-06/0.1081, allocations: 0 / 487.4 MB, free: 252 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.779e-06/0.1081, allocations: 0 / 487.4 MB, free: 252 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.322e-05/0.1081, allocations: 64.33 kB / 487.5 MB, free: 172 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.1081, allocations: 0 / 487.5 MB, free: 172 kB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.548e-05/0.1082, allocations: 67.33 kB / 487.5 MB, free: 92 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.383e-05/0.1082, allocations: 33.64 kB / 487.6 MB, free: 52 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.887e-06/0.1082, allocations: 0 / 487.6 MB, free: 52 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.225e-05/0.1083, allocations: 4 kB / 487.6 MB, free: 48 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.62e-07/0.1083, allocations: 4 kB / 487.6 MB, free: 44 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.367e-06/0.1083, allocations: 3.938 kB / 487.6 MB, free: 40 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.629e-05/0.1083, allocations: 4 kB / 487.6 MB, free: 36 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.48e-06/0.1083, allocations: 4.031 kB / 487.6 MB, free: 32 kB / 350.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 8.479e-05/0.1084, allocations: 135.5 kB / 487.7 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.003e-05/0.1084, allocations: 7.922 kB / 487.7 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.324e-06/0.1084, allocations: 3.125 kB / 487.7 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.222e-06/0.1084, allocations: 0 / 487.7 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.015e-06/0.1084, allocations: 0 / 487.7 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.997e-06/0.1084, allocations: 3.984 kB / 487.7 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.12e-05/0.1085, allocations: 145.7 kB / 487.9 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.183e-06/0.1085, allocations: 0 / 487.9 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.31e-07/0.1085, allocations: 4 kB / 487.9 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.027e-06/0.1086, allocations: 7.922 kB / 487.9 MB, free: 15.67 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.421e-06/0.1086, allocations: 0 / 487.9 MB, free: 15.67 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.385e-06/0.1086, allocations: 0 / 487.9 MB, free: 15.67 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.1086, allocations: 3.938 kB / 487.9 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.032e-05/0.1087, allocations: 90.78 kB / 488 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.152e-05/0.1087, allocations: 85 kB / 488.1 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.3e-05/0.1087, allocations: 7.938 kB / 488.1 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.866e-06/0.1087, allocations: 4.031 kB / 488.1 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.121e-05/0.1088, allocations: 0 / 488.1 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.11e-06/0.1088, allocations: 4 kB / 488.1 MB, free: 15.43 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.697e-05/0.1088, allocations: 75.28 kB / 488.1 MB, free: 15.36 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1088, allocations: 0 / 488.1 MB, free: 15.36 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000246/0.1091, allocations: 39.98 kB / 488.2 MB, free: 15.32 MB / 366.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.0003279/0.1094, allocations: 173.4 kB / 488.3 MB, free: 15.14 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 7.488e-05/0.1095, allocations: 59.34 kB / 488.4 MB, free: 15.07 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.1095, allocations: 0 / 488.4 MB, free: 15.07 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.781e-05/0.1095, allocations: 59.34 kB / 488.5 MB, free: 15 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001167/0.1096, allocations: 4 kB / 488.5 MB, free: 15 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001666/0.1098, allocations: 108.4 kB / 488.6 MB, free: 14.86 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001982/0.11, allocations: 0.6692 MB / 489.2 MB, free: 14.16 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.15e-05/0.11, allocations: 11.56 kB / 489.3 MB, free: 14.15 MB / 366.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1101, allocations: 4 kB / 489.3 MB, free: 14.15 MB / 366.1 MB Notification: Performance of Templates: time 0.002513/0.1126, allocations: 1.135 MB / 490.4 MB, free: 13.02 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.makefile (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=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestScalarFunctions/TestScalarFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches