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.001554/0.001554, allocations: 110.1 kB / 18.3 MB, free: 4.84 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.001752/0.001752, allocations: 199.3 kB / 19.23 MB, free: 3.914 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.404/1.404, allocations: 222.9 MB / 242.9 MB, free: 15.16 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.2388/0.2388, allocations: 44.19 MB / 337.3 MB, free: 2.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001255/0.001255, allocations: 63.05 kB / 409.1 MB, free: 27.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1074, allocations: 60.82 MB / 469.9 MB, free: 14.37 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001703/0.1092, allocations: 483.8 kB / 470.4 MB, free: 13.89 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001663/0.1108, allocations: 1.395 MB / 471.8 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.264e-05/0.1109, allocations: 0 / 471.8 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.056e-05/0.1109, allocations: 0 / 471.8 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.538e-06/0.1109, allocations: 0 / 471.8 MB, free: 12.48 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.0004956/0.1114, allocations: 102.9 kB / 471.9 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.462e-05/0.1115, allocations: 8 kB / 471.9 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.178e-05/0.1115, allocations: 11.94 kB / 471.9 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.46e-05/0.1115, allocations: 0 / 471.9 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.892e-05/0.1116, allocations: 0 / 471.9 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.907e-06/0.1116, allocations: 0 / 471.9 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001668/0.1117, allocations: 35.97 kB / 471.9 MB, free: 12.33 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.165e-06/0.1118, allocations: 3.938 kB / 471.9 MB, free: 12.33 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.813e-05/0.1118, allocations: 4 kB / 471.9 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001084/0.1119, allocations: 39.92 kB / 472 MB, free: 12.29 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.1119, allocations: 0 / 472 MB, free: 12.29 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.1119, allocations: 0 / 472 MB, free: 12.29 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.298e-06/0.1119, allocations: 4 kB / 472 MB, free: 12.28 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.0003019/0.1122, allocations: 345.3 kB / 472.3 MB, free: 11.89 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.529e-05/0.1123, allocations: 12.03 kB / 472.3 MB, free: 11.88 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.925e-05/0.1123, allocations: 0.9375 kB / 472.3 MB, free: 11.88 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001052/0.1124, allocations: 168.4 kB / 472.5 MB, free: 11.68 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.187e-05/0.1124, allocations: 384 / 472.5 MB, free: 11.68 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.434e-06/0.1125, allocations: 384 / 472.5 MB, free: 11.68 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.336e-05/0.1125, allocations: 37.95 kB / 472.5 MB, free: 11.63 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.873e-06/0.1126, allocations: 3.938 kB / 472.5 MB, free: 11.63 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.005e-06/0.1126, allocations: 4 kB / 472.6 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.737e-06/0.1126, allocations: 0 / 472.6 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.765e-05/0.1126, allocations: 4 kB / 472.6 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001156/0.1127, allocations: 145.7 kB / 472.7 MB, free: 11.43 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.628e-05/0.1128, allocations: 18.58 kB / 472.7 MB, free: 11.4 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.62e-05/0.1128, allocations: 8.953 kB / 472.7 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.768e-06/0.1128, allocations: 0 / 472.7 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.68e-05/0.1129, allocations: 72.08 kB / 472.8 MB, free: 11.3 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.133e-06/0.1129, allocations: 0 / 472.8 MB, free: 11.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001852/0.1131, allocations: 63.39 kB / 472.9 MB, free: 11.23 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.861e-05/0.1131, allocations: 77.11 kB / 472.9 MB, free: 11.14 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.402e-05/0.1132, allocations: 93.86 kB / 473 MB, free: 11.04 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.939e-06/0.1132, allocations: 25.7 kB / 473 MB, free: 11 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.62e-05/0.1132, allocations: 84.14 kB / 473.1 MB, free: 10.92 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.433e-05/0.1132, allocations: 0 / 473.1 MB, free: 10.92 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.684e-05/0.1133, allocations: 13.84 kB / 473.1 MB, free: 10.9 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.766e-05/0.1133, allocations: 310.8 kB / 473.4 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.867e-06/0.1134, allocations: 4 kB / 473.5 MB, free: 10.58 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.364e-06/0.1134, allocations: 0 / 473.5 MB, free: 10.58 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.807e-05/0.1134, allocations: 72.19 kB / 473.5 MB, free: 10.5 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.372e-06/0.1134, allocations: 0 / 473.5 MB, free: 10.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.873e-05/0.1135, allocations: 59.41 kB / 473.6 MB, free: 10.43 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.881e-05/0.1136, allocations: 33.64 kB / 473.6 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.1136, allocations: 4.094 kB / 473.6 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.171e-05/0.1136, allocations: 0 / 473.6 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.184e-06/0.1136, allocations: 3.984 kB / 473.6 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.379e-06/0.1136, allocations: 0 / 473.6 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.597e-05/0.1136, allocations: 4 kB / 473.6 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.392e-06/0.1136, allocations: 0 / 473.6 MB, free: 10.38 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.914e-05/0.1137, allocations: 131.5 kB / 473.8 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.171e-05/0.1137, allocations: 7.938 kB / 473.8 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.07e-05/0.1138, allocations: 11.08 kB / 473.8 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.232e-06/0.1138, allocations: 4 kB / 473.8 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.1138, allocations: 0 / 473.8 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.773e-06/0.1138, allocations: 3.938 kB / 473.8 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.281e-05/0.1139, allocations: 149.7 kB / 473.9 MB, free: 10.01 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.1139, allocations: 4 kB / 473.9 MB, free: 10 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.01e-07/0.1139, allocations: 4 kB / 473.9 MB, free: 10 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.095e-06/0.1139, allocations: 3.938 kB / 473.9 MB, free: 9.996 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.623e-06/0.1139, allocations: 0 / 473.9 MB, free: 9.996 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.21e-07/0.1139, allocations: 0 / 473.9 MB, free: 9.996 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.1139, allocations: 3.938 kB / 473.9 MB, free: 9.992 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.967e-05/0.114, allocations: 98.73 kB / 474 MB, free: 9.871 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.416e-05/0.1141, allocations: 81.05 kB / 474.1 MB, free: 9.773 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.261e-05/0.1141, allocations: 3.938 kB / 474.1 MB, free: 9.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.275e-06/0.1141, allocations: 0 / 474.1 MB, free: 9.77 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.432e-05/0.1141, allocations: 4 kB / 474.1 MB, free: 9.766 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.504e-06/0.1141, allocations: 0 / 474.1 MB, free: 9.766 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.21e-05/0.1141, allocations: 75.28 kB / 474.2 MB, free: 9.691 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1141, allocations: 4.031 kB / 474.2 MB, free: 9.688 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002053/0.1144, allocations: 15.98 kB / 474.2 MB, free: 9.672 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.0002944/0.1147, allocations: 145.7 kB / 474.4 MB, free: 9.531 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.352e-05/0.1148, allocations: 59.41 kB / 474.4 MB, free: 9.461 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.1148, allocations: 0 / 474.4 MB, free: 9.461 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.648e-05/0.1148, allocations: 51.41 kB / 474.5 MB, free: 9.398 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001222/0.1149, allocations: 8.125 kB / 474.5 MB, free: 9.391 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001884/0.1151, allocations: 106.6 kB / 474.6 MB, free: 9.254 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002223/0.1154, allocations: 0.669 MB / 475.3 MB, free: 8.559 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.081e-05/0.1154, allocations: 7.438 kB / 475.3 MB, free: 8.551 MB / 350.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1154, allocations: 4 kB / 475.3 MB, free: 8.547 MB / 350.1 MB Notification: Performance of Templates: time 0.002065/0.1175, allocations: 0.6366 MB / 475.9 MB, free: 7.91 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