Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions") translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001107/0.001107, allocations: 113.8 kB / 17.78 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001036/0.001036, allocations: 179.9 kB / 18.71 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.317/1.317, allocations: 222.9 MB / 242.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1934/0.1934, allocations: 44.19 MB / 336.7 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001176/0.001176, allocations: 59.91 kB / 470.5 MB, free: 13.19 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3101/0.3113, allocations: 60.83 MB / 0.5189 GB, free: 3.609 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001503/0.3128, allocations: 0.4939 MB / 0.5194 GB, free: 3.309 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00145/0.3143, allocations: 1.38 MB / 0.5207 GB, free: 2.309 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.954e-05/0.3143, allocations: 4 kB / 0.5207 GB, free: 2.305 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.045e-05/0.3144, allocations: 1.344 kB / 0.5207 GB, free: 2.305 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.09e-06/0.3144, allocations: 0 / 0.5207 GB, free: 2.305 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.0004253/0.3148, allocations: 109.9 kB / 0.5208 GB, free: 2.246 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.237e-05/0.3148, allocations: 1.438 kB / 0.5208 GB, free: 2.246 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.724e-05/0.3149, allocations: 1.703 kB / 0.5208 GB, free: 2.246 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.34e-05/0.3149, allocations: 1.281 kB / 0.5208 GB, free: 2.246 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.001e-05/0.3149, allocations: 7.922 kB / 0.5208 GB, free: 2.238 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.312e-06/0.315, allocations: 0 / 0.5208 GB, free: 2.238 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002469/0.3152, allocations: 68 kB / 0.5209 GB, free: 2.215 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.703e-06/0.3152, allocations: 3.984 kB / 0.5209 GB, free: 2.211 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.409e-05/0.3152, allocations: 1.469 kB / 0.5209 GB, free: 2.211 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 8.392e-05/0.3153, allocations: 24.05 kB / 0.5209 GB, free: 2.203 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.075e-06/0.3153, allocations: 0 / 0.5209 GB, free: 2.203 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3153, allocations: 0 / 0.5209 GB, free: 2.203 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.108e-06/0.3154, allocations: 0 / 0.5209 GB, free: 2.203 MB / 382.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.0002076/0.3156, allocations: 344 kB / 0.5213 GB, free: 1.824 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.975e-05/0.3156, allocations: 10.27 kB / 0.5213 GB, free: 1.824 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.752e-05/0.3156, allocations: 4.938 kB / 0.5213 GB, free: 1.82 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.638e-05/0.3157, allocations: 163.2 kB / 0.5214 GB, free: 1.625 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.722e-06/0.3157, allocations: 384 / 0.5214 GB, free: 1.625 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.357e-06/0.3157, allocations: 5.859 kB / 0.5214 GB, free: 1.621 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.809e-05/0.3158, allocations: 37.14 kB / 0.5215 GB, free: 1.582 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.773e-06/0.3158, allocations: 1.531 kB / 0.5215 GB, free: 1.582 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.083e-06/0.3158, allocations: 0 / 0.5215 GB, free: 1.582 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.747e-06/0.3158, allocations: 0 / 0.5215 GB, free: 1.582 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.561e-05/0.3158, allocations: 5.906 kB / 0.5215 GB, free: 1.578 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.469e-05/0.3159, allocations: 152.5 kB / 0.5216 GB, free: 1.383 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 2.71e-05/0.3159, allocations: 16.7 kB / 0.5216 GB, free: 1.359 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.18e-05/0.316, allocations: 6.734 kB / 0.5216 GB, free: 1.352 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.509e-06/0.316, allocations: 3.938 kB / 0.5216 GB, free: 1.348 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.588e-05/0.316, allocations: 67.11 kB / 0.5217 GB, free: 1.27 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 9.42e-07/0.316, allocations: 0 / 0.5217 GB, free: 1.27 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001359/0.3161, allocations: 72.67 kB / 0.5218 GB, free: 1.195 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.281e-05/0.3162, allocations: 78.94 kB / 0.5219 GB, free: 1.102 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.671e-05/0.3162, allocations: 91.08 kB / 0.5219 GB, free: 1.004 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.1e-06/0.3162, allocations: 25.7 kB / 0.522 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.596e-06/0.3162, allocations: 80.14 kB / 0.522 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.762e-05/0.3162, allocations: 5.266 kB / 0.522 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.032e-05/0.3163, allocations: 11.84 kB / 0.5221 GB, free: 0.875 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.486e-05/0.3163, allocations: 312.9 kB / 0.5224 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.518e-06/0.3163, allocations: 8.875 kB / 0.5224 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.799e-06/0.3163, allocations: 1.062 kB / 0.5224 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.76e-05/0.3164, allocations: 60.22 kB / 0.5224 GB, free: 496 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.372e-06/0.3164, allocations: 1.062 kB / 0.5224 GB, free: 496 kB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.672e-05/0.3164, allocations: 64.11 kB / 0.5225 GB, free: 428 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.051e-05/0.3164, allocations: 36.03 kB / 0.5225 GB, free: 392 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.397e-06/0.3165, allocations: 0 / 0.5225 GB, free: 392 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.179e-05/0.3165, allocations: 1.062 kB / 0.5225 GB, free: 392 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.282e-06/0.3165, allocations: 0.7969 kB / 0.5225 GB, free: 392 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.997e-06/0.3165, allocations: 5.125 kB / 0.5225 GB, free: 388 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.409e-05/0.3165, allocations: 0 / 0.5225 GB, free: 388 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.853e-06/0.3165, allocations: 5.078 kB / 0.5225 GB, free: 384 kB / 382.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 4.356e-05/0.3166, allocations: 139.3 kB / 0.5227 GB, free: 232 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.955e-06/0.3166, allocations: 8.953 kB / 0.5227 GB, free: 224 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.715e-06/0.3166, allocations: 7.828 kB / 0.5227 GB, free: 216 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.21e-07/0.3166, allocations: 1.156 kB / 0.5227 GB, free: 216 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.496e-06/0.3166, allocations: 0.8906 kB / 0.5227 GB, free: 216 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.014e-06/0.3166, allocations: 0.9062 kB / 0.5227 GB, free: 216 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.956e-05/0.3166, allocations: 148.3 kB / 0.5228 GB, free: 20 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-06/0.3167, allocations: 0.7969 kB / 0.5228 GB, free: 20 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.2e-07/0.3167, allocations: 1.156 kB / 0.5228 GB, free: 20 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.453e-06/0.3167, allocations: 3.938 kB / 0.5228 GB, free: 16 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.472e-06/0.3167, allocations: 1.812 kB / 0.5228 GB, free: 16 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.31e-07/0.3167, allocations: 0 / 0.5228 GB, free: 16 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.3167, allocations: 1.188 kB / 0.5228 GB, free: 16 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001026/0.3168, allocations: 96.47 kB / 0.5229 GB, free: 15.91 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.661e-05/0.3168, allocations: 81.8 kB / 0.523 GB, free: 15.81 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.193e-05/0.3168, allocations: 6.719 kB / 0.523 GB, free: 15.81 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.508e-06/0.3169, allocations: 4 kB / 0.523 GB, free: 15.8 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.177e-06/0.3169, allocations: 1.281 kB / 0.523 GB, free: 15.8 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.086e-06/0.3169, allocations: 1.609 kB / 0.523 GB, free: 15.8 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.285e-05/0.3169, allocations: 79.22 kB / 0.5231 GB, free: 15.73 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3169, allocations: 0 / 0.5231 GB, free: 15.73 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0001896/0.3171, allocations: 14.41 kB / 0.5231 GB, free: 15.72 MB / 398.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.0002356/0.3173, allocations: 134.8 kB / 0.5232 GB, free: 15.62 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 8.484e-05/0.3174, allocations: 58.23 kB / 0.5233 GB, free: 15.56 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.469e-06/0.3174, allocations: 0 / 0.5233 GB, free: 15.56 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 2.822e-05/0.3175, allocations: 64.36 kB / 0.5234 GB, free: 15.49 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001175/0.3176, allocations: 8.562 kB / 0.5234 GB, free: 15.48 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001498/0.3178, allocations: 76.25 kB / 0.5234 GB, free: 15.39 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001976/0.318, allocations: 0.6761 MB / 0.5241 GB, free: 14.69 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.959e-06/0.318, allocations: 0 / 0.5241 GB, free: 14.69 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.997e-06/0.318, allocations: 8.75 kB / 0.5241 GB, free: 14.68 MB / 398.1 MB Notification: Performance of SimCode: time 2e-07/0.318, allocations: 0 / 0.5241 GB, free: 14.68 MB / 398.1 MB Notification: Performance of Templates: time 0.002316/0.3203, allocations: 0.5141 MB / 0.5246 GB, free: 14.6 MB / 398.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestScalarFunctions/TestScalarFunctions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches