Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestBooleanFunctions.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.TestBooleanFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestBooleanFunctions") translateModel(ModelicaTest.Math.TestBooleanFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestBooleanFunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001094/0.001094, allocations: 108.2 kB / 18.39 MB, free: 4.629 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.001076/0.001076, allocations: 182.9 kB / 19.33 MB, free: 3.699 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.353/1.353, allocations: 222.9 MB / 243 MB, free: 15.15 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.2182/0.2182, allocations: 44.19 MB / 337.4 MB, free: 2.699 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001243/0.001243, allocations: 68.23 kB / 409.9 MB, free: 26.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1313/0.1326, allocations: 60.82 MB / 470.7 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestBooleanFunctions): time 0.001975/0.1346, allocations: 498.7 kB / 471.2 MB, free: 13.17 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009008/0.1355, allocations: 373.4 kB / 471.5 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.977e-05/0.1356, allocations: 3.938 kB / 471.5 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.514e-05/0.1356, allocations: 0 / 471.5 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.133e-06/0.1356, allocations: 0 / 471.5 MB, free: 12.8 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Math.mo:38:3-118:23:writable] Warning: Pure function 'ModelicaTest.Math.BooleanFunctions' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0008593/0.1365, allocations: 195.3 kB / 471.7 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.312e-05/0.1365, allocations: 8 kB / 471.7 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.249e-05/0.1366, allocations: 0 / 471.7 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.526e-05/0.1366, allocations: 0 / 471.7 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.587e-05/0.1366, allocations: 7.938 kB / 471.7 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.111e-06/0.1366, allocations: 4 kB / 471.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003412/0.137, allocations: 207.7 kB / 472 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.957e-06/0.137, allocations: 0 / 472 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.84e-05/0.137, allocations: 3.984 kB / 472 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002309/0.1373, allocations: 155.7 kB / 472.1 MB, free: 12.23 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.399e-06/0.1373, allocations: 0 / 472.1 MB, free: 12.23 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.1373, allocations: 0 / 472.1 MB, free: 12.23 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.415e-06/0.1373, allocations: 0 / 472.1 MB, free: 12.23 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.0004119/0.1377, allocations: 369.2 kB / 472.5 MB, free: 11.82 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.018e-05/0.1378, allocations: 8.031 kB / 472.5 MB, free: 11.81 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.561e-05/0.1378, allocations: 8.922 kB / 472.5 MB, free: 11.8 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001196/0.1379, allocations: 164.4 kB / 472.6 MB, free: 11.6 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.616e-06/0.138, allocations: 384 / 472.6 MB, free: 11.6 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.202e-05/0.138, allocations: 384 / 472.6 MB, free: 11.6 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000103/0.1381, allocations: 42.17 kB / 472.7 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.415e-06/0.1381, allocations: 192 / 472.7 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.235e-05/0.1381, allocations: 3.938 kB / 472.7 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.752e-06/0.1381, allocations: 0 / 472.7 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.622e-05/0.1382, allocations: 3.938 kB / 472.7 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001741/0.1384, allocations: 149.7 kB / 472.8 MB, free: 11.35 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.255e-05/0.1384, allocations: 22.61 kB / 472.9 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.639e-05/0.1384, allocations: 8.844 kB / 472.9 MB, free: 11.31 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.6e-06/0.1385, allocations: 0 / 472.9 MB, free: 11.31 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.795e-05/0.1385, allocations: 64.27 kB / 472.9 MB, free: 11.23 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.092e-06/0.1385, allocations: 0 / 472.9 MB, free: 11.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001961/0.1387, allocations: 63.34 kB / 473 MB, free: 11.16 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.056e-05/0.1388, allocations: 89.22 kB / 473.1 MB, free: 11.05 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.853e-05/0.1388, allocations: 89.86 kB / 473.2 MB, free: 10.95 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.214e-05/0.1389, allocations: 25.7 kB / 473.2 MB, free: 10.92 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.651e-05/0.1389, allocations: 80.14 kB / 473.3 MB, free: 10.84 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.445e-05/0.1389, allocations: 0 / 473.3 MB, free: 10.84 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.729e-05/0.139, allocations: 13.72 kB / 473.3 MB, free: 10.82 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001135/0.1391, allocations: 310.8 kB / 473.6 MB, free: 10.51 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.084e-05/0.1391, allocations: 0 / 473.6 MB, free: 10.51 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.672e-06/0.1391, allocations: 8 kB / 473.6 MB, free: 10.5 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.097e-05/0.1392, allocations: 64.2 kB / 473.7 MB, free: 10.42 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.1392, allocations: 0 / 473.7 MB, free: 10.42 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.978e-05/0.1393, allocations: 63.39 kB / 473.7 MB, free: 10.35 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.608e-05/0.1393, allocations: 33.7 kB / 473.8 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.1393, allocations: 0 / 473.8 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.742e-05/0.1393, allocations: 3.938 kB / 473.8 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.415e-06/0.1393, allocations: 0 / 473.8 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.29e-06/0.1394, allocations: 3.938 kB / 473.8 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.528e-05/0.1394, allocations: 4.094 kB / 473.8 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.446e-06/0.1394, allocations: 0 / 473.8 MB, free: 10.3 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 0.0001173/0.1395, allocations: 139.5 kB / 473.9 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.137e-06/0.1395, allocations: 4 kB / 473.9 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.689e-05/0.1396, allocations: 11.02 kB / 473.9 MB, free: 10.13 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.363e-06/0.1396, allocations: 0 / 473.9 MB, free: 10.13 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.1396, allocations: 4 kB / 473.9 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.475e-06/0.1396, allocations: 0 / 473.9 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001163/0.1397, allocations: 145.7 kB / 474.1 MB, free: 9.934 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.1397, allocations: 4 kB / 474.1 MB, free: 9.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.01e-07/0.1397, allocations: 3.938 kB / 474.1 MB, free: 9.926 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.012e-06/0.1397, allocations: 0 / 474.1 MB, free: 9.926 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.225e-05/0.1397, allocations: 7.938 kB / 474.1 MB, free: 9.918 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.82e-07/0.1397, allocations: 0 / 474.1 MB, free: 9.918 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.1398, allocations: 0 / 474.1 MB, free: 9.918 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001124/0.1399, allocations: 90.83 kB / 474.2 MB, free: 9.805 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.134e-05/0.1399, allocations: 77.11 kB / 474.2 MB, free: 9.711 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.695e-05/0.14, allocations: 11.91 kB / 474.3 MB, free: 9.699 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.706e-06/0.14, allocations: 0 / 474.3 MB, free: 9.699 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.727e-05/0.14, allocations: 0 / 474.3 MB, free: 9.699 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.393e-06/0.14, allocations: 8 kB / 474.3 MB, free: 9.691 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.851e-05/0.1401, allocations: 75.28 kB / 474.3 MB, free: 9.617 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1401, allocations: 0 / 474.3 MB, free: 9.617 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002873/0.1404, allocations: 51.98 kB / 474.4 MB, free: 9.566 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.0005036/0.1409, allocations: 192 kB / 474.6 MB, free: 9.379 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000129/0.141, allocations: 75.27 kB / 474.7 MB, free: 9.293 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/0.141, allocations: 0 / 474.7 MB, free: 9.293 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.163e-05/0.1411, allocations: 55.41 kB / 474.7 MB, free: 9.227 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001352/0.1412, allocations: 0 / 474.7 MB, free: 9.227 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002566/0.1415, allocations: 76.84 kB / 474.8 MB, free: 9.125 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003646/0.1418, allocations: 0.673 MB / 475.5 MB, free: 8.426 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.618e-06/0.1419, allocations: 8 kB / 475.5 MB, free: 8.418 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.852e-05/0.1419, allocations: 11.44 kB / 475.5 MB, free: 8.406 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1419, allocations: 0 / 475.5 MB, free: 8.406 MB / 350.1 MB Notification: Performance of Templates: time 0.004424/0.1463, allocations: 1.569 MB / 477 MB, free: 6.836 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.TestBooleanFunctions.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestBooleanFunctions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestBooleanFunctions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestBooleanFunctions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestBooleanFunctions.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.TestBooleanFunctions -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.TestBooleanFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.TestBooleanFunctions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestBooleanFunctions/TestBooleanFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.TestBooleanFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches