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.001008/0.001008, allocations: 97.89 kB / 18.01 MB, free: 5.602 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.001238/0.001238, allocations: 182.1 kB / 18.91 MB, free: 4.738 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.331/1.331, allocations: 223.3 MB / 243 MB, free: 14.42 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.2004/0.2004, allocations: 44.25 MB / 338.3 MB, free: 2.406 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003178/0.0003179, allocations: 8 kB / 411 MB, free: 27.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1158/0.1162, allocations: 61.92 MB / 472.9 MB, free: 13.31 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.0005906/0.1168, allocations: 213.3 kB / 473.1 MB, free: 13.1 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001841/0.1187, allocations: 1.368 MB / 474.5 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.054e-05/0.1187, allocations: 0 / 474.5 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.169e-05/0.1187, allocations: 0 / 474.5 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.119e-06/0.1187, allocations: 0 / 474.5 MB, free: 11.71 MB / 350.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.0004575/0.1192, allocations: 95.77 kB / 474.6 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.423e-05/0.1192, allocations: 0 / 474.6 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.052e-05/0.1193, allocations: 4 kB / 474.6 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.551e-05/0.1193, allocations: 0 / 474.6 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.17e-05/0.1193, allocations: 4 kB / 474.6 MB, free: 11.61 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.623e-06/0.1193, allocations: 0 / 474.6 MB, free: 11.61 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001673/0.1195, allocations: 43.95 kB / 474.6 MB, free: 11.57 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.202e-05/0.1195, allocations: 0 / 474.6 MB, free: 11.57 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.95e-05/0.1196, allocations: 29.64 kB / 474.7 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001143/0.1197, allocations: 27.97 kB / 474.7 MB, free: 11.51 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.1197, allocations: 3.938 kB / 474.7 MB, free: 11.5 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1197, allocations: 0 / 474.7 MB, free: 11.5 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.918e-06/0.1197, allocations: 0 / 474.7 MB, free: 11.5 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.0003228/0.12, allocations: 337.3 kB / 475 MB, free: 11.12 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.129e-05/0.1201, allocations: 16.03 kB / 475 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.849e-05/0.1201, allocations: 0.9375 kB / 475 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001084/0.1202, allocations: 160.4 kB / 475.2 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.458e-05/0.1203, allocations: 4.312 kB / 475.2 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.157e-06/0.1203, allocations: 384 / 475.2 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.804e-05/0.1204, allocations: 38 kB / 475.2 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.553e-06/0.1204, allocations: 0 / 475.2 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.807e-06/0.1204, allocations: 0 / 475.2 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.68e-06/0.1204, allocations: 0 / 475.2 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.986e-05/0.1204, allocations: 8 kB / 475.2 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001321/0.1206, allocations: 149.7 kB / 475.4 MB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.413e-05/0.1206, allocations: 18.61 kB / 475.4 MB, free: 10.63 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.389e-05/0.1207, allocations: 8.859 kB / 475.4 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.813e-06/0.1207, allocations: 0 / 475.4 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.477e-05/0.1207, allocations: 72.19 kB / 475.5 MB, free: 10.54 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.22e-07/0.1207, allocations: 0 / 475.5 MB, free: 10.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.000164/0.1209, allocations: 63.41 kB / 475.5 MB, free: 10.46 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.996e-05/0.121, allocations: 77.11 kB / 475.6 MB, free: 10.37 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.317e-05/0.121, allocations: 93.8 kB / 475.7 MB, free: 10.27 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.33e-05/0.121, allocations: 29.7 kB / 475.7 MB, free: 10.23 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.534e-05/0.1211, allocations: 80.14 kB / 475.8 MB, free: 10.15 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.853e-05/0.1211, allocations: 3.984 kB / 475.8 MB, free: 10.14 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.295e-05/0.1211, allocations: 13.7 kB / 475.8 MB, free: 10.12 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001276/0.1212, allocations: 314.8 kB / 476.1 MB, free: 9.809 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.844e-06/0.1213, allocations: 8.062 kB / 476.2 MB, free: 9.801 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.093e-06/0.1213, allocations: 4 kB / 476.2 MB, free: 9.797 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.729e-05/0.1213, allocations: 60.27 kB / 476.2 MB, free: 9.723 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.1213, allocations: 0 / 476.2 MB, free: 9.723 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.86e-05/0.1214, allocations: 59.39 kB / 476.3 MB, free: 9.652 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.71e-05/0.1215, allocations: 41.64 kB / 476.3 MB, free: 9.605 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.028e-06/0.1215, allocations: 0 / 476.3 MB, free: 9.605 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.478e-06/0.1215, allocations: 0 / 476.3 MB, free: 9.605 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.51e-07/0.1215, allocations: 0 / 476.3 MB, free: 9.605 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.489e-06/0.1215, allocations: 4.094 kB / 476.3 MB, free: 9.602 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.409e-05/0.1215, allocations: 0 / 476.3 MB, free: 9.602 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.628e-06/0.1215, allocations: 0 / 476.3 MB, free: 9.602 MB / 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 7.386e-05/0.1216, allocations: 139.5 kB / 476.5 MB, free: 9.449 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.426e-06/0.1216, allocations: 3.938 kB / 476.5 MB, free: 9.445 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.428e-05/0.1217, allocations: 15 kB / 476.5 MB, free: 9.43 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.1217, allocations: 4 kB / 476.5 MB, free: 9.426 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.1217, allocations: 0 / 476.5 MB, free: 9.426 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.773e-06/0.1217, allocations: 0 / 476.5 MB, free: 9.426 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.53e-05/0.1218, allocations: 145.7 kB / 476.6 MB, free: 9.234 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.1218, allocations: 3.984 kB / 476.6 MB, free: 9.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.1218, allocations: 0 / 476.6 MB, free: 9.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.676e-06/0.1218, allocations: 3.938 kB / 476.6 MB, free: 9.227 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.584e-06/0.1218, allocations: 4 kB / 476.6 MB, free: 9.223 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.1218, allocations: 3.984 kB / 476.6 MB, free: 9.219 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.1218, allocations: 0 / 476.6 MB, free: 9.219 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001059/0.1219, allocations: 90.75 kB / 476.7 MB, free: 9.105 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.946e-05/0.122, allocations: 81.14 kB / 476.8 MB, free: 9.008 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.402e-05/0.122, allocations: 7.922 kB / 476.8 MB, free: 9 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.696e-06/0.122, allocations: 0 / 476.8 MB, free: 9 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.665e-05/0.122, allocations: 4 kB / 476.8 MB, free: 8.996 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.769e-06/0.122, allocations: 11.88 kB / 476.8 MB, free: 8.984 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.552e-05/0.1221, allocations: 75.28 kB / 476.9 MB, free: 8.91 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1221, allocations: 0 / 476.9 MB, free: 8.91 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002119/0.1223, allocations: 16 kB / 476.9 MB, free: 8.895 MB / 350.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.0003294/0.1226, allocations: 137.2 kB / 477 MB, free: 8.762 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.328e-05/0.1227, allocations: 59.41 kB / 477.1 MB, free: 8.691 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.1227, allocations: 0 / 477.1 MB, free: 8.691 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.983e-05/0.1228, allocations: 59.39 kB / 477.2 MB, free: 8.621 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001157/0.1229, allocations: 4 kB / 477.2 MB, free: 8.617 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001934/0.1231, allocations: 96.59 kB / 477.3 MB, free: 8.488 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002944/0.1234, allocations: 0.6692 MB / 477.9 MB, free: 7.793 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.242e-05/0.1234, allocations: 11.44 kB / 477.9 MB, free: 7.781 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1234, allocations: 0 / 477.9 MB, free: 7.781 MB / 350.1 MB Notification: Performance of Templates: time 0.002139/0.1256, allocations: 0.6399 MB / 478.6 MB, free: 7.141 MB / 350.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/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_4.0.0_ModelicaTest.Math.TestScalarFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches