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.001432/0.001432, allocations: 105.1 kB / 17.21 MB, free: 6.289 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.001658/0.001658, allocations: 194 kB / 18.12 MB, free: 5.383 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.376/1.376, allocations: 222.9 MB / 241.8 MB, free: 15.5 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.23/0.23, allocations: 44.18 MB / 336.1 MB, free: 3.023 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001288/0.001288, allocations: 59.19 kB / 407.7 MB, free: 27.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1302/0.1315, allocations: 60.82 MB / 468.5 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestBooleanFunctions): time 0.001672/0.1332, allocations: 0.5371 MB / 469.1 MB, free: 14.32 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008957/0.1341, allocations: 389.5 kB / 469.4 MB, free: 13.95 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.539e-05/0.1342, allocations: 0 / 469.4 MB, free: 13.95 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.622e-05/0.1342, allocations: 0 / 469.4 MB, free: 13.95 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.488e-06/0.1342, allocations: 0 / 469.4 MB, free: 13.95 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.0006594/0.1349, allocations: 167.7 kB / 469.6 MB, free: 13.78 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 2.854e-05/0.1349, allocations: 3.984 kB / 469.6 MB, free: 13.78 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.676e-05/0.1349, allocations: 0 / 469.6 MB, free: 13.78 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.479e-05/0.135, allocations: 4 kB / 469.6 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.746e-05/0.135, allocations: 3.938 kB / 469.6 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.001e-06/0.135, allocations: 0 / 469.6 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002645/0.1353, allocations: 175.7 kB / 469.8 MB, free: 13.6 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.27e-06/0.1353, allocations: 4 kB / 469.8 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.069e-05/0.1353, allocations: 0 / 469.8 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002321/0.1355, allocations: 151.7 kB / 469.9 MB, free: 13.45 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.1356, allocations: 0 / 469.9 MB, free: 13.45 MB / 350.1 MB Notification: Performance of FrontEnd: time 6.91e-07/0.1356, allocations: 4 kB / 469.9 MB, free: 13.44 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.058e-06/0.1356, allocations: 0 / 469.9 MB, free: 13.44 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.0003495/0.1359, allocations: 369.2 kB / 470.3 MB, free: 13.02 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.321e-05/0.136, allocations: 12.03 kB / 470.3 MB, free: 13.01 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.838e-05/0.136, allocations: 0.9375 kB / 470.3 MB, free: 13.01 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.976e-05/0.1361, allocations: 164.4 kB / 470.5 MB, free: 12.81 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.468e-06/0.1361, allocations: 4.375 kB / 470.5 MB, free: 12.81 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.125e-05/0.1361, allocations: 384 / 470.5 MB, free: 12.81 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.427e-05/0.1362, allocations: 34.27 kB / 470.5 MB, free: 12.77 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.02e-05/0.1362, allocations: 4.172 kB / 470.5 MB, free: 12.77 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.024e-05/0.1363, allocations: 3.938 kB / 470.5 MB, free: 12.76 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.37e-06/0.1363, allocations: 0 / 470.5 MB, free: 12.76 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.47e-05/0.1363, allocations: 7.938 kB / 470.5 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001603/0.1365, allocations: 145.7 kB / 470.7 MB, free: 12.56 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.184e-05/0.1365, allocations: 18.58 kB / 470.7 MB, free: 12.54 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.71e-05/0.1365, allocations: 8.953 kB / 470.7 MB, free: 12.52 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.761e-06/0.1366, allocations: 0 / 470.7 MB, free: 12.52 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.711e-05/0.1366, allocations: 60.27 kB / 470.8 MB, free: 12.45 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.42e-07/0.1366, allocations: 0 / 470.8 MB, free: 12.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002122/0.1368, allocations: 71.27 kB / 470.8 MB, free: 12.37 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.259e-05/0.1369, allocations: 81.17 kB / 470.9 MB, free: 12.27 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.568e-05/0.1369, allocations: 93.86 kB / 471 MB, free: 12.17 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.909e-05/0.137, allocations: 25.7 kB / 471 MB, free: 12.14 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.668e-05/0.137, allocations: 84.14 kB / 471.1 MB, free: 12.05 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.041e-05/0.1371, allocations: 0 / 471.1 MB, free: 12.05 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.248e-05/0.1371, allocations: 13.72 kB / 471.1 MB, free: 12.03 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001395/0.1372, allocations: 310.8 kB / 471.4 MB, free: 11.72 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.095e-05/0.1373, allocations: 4 kB / 471.4 MB, free: 11.71 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.031e-06/0.1373, allocations: 0 / 471.4 MB, free: 11.71 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.297e-05/0.1373, allocations: 68.31 kB / 471.5 MB, free: 11.63 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.1374, allocations: 0 / 471.5 MB, free: 11.63 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.307e-05/0.1374, allocations: 67.34 kB / 471.6 MB, free: 11.55 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.603e-05/0.1375, allocations: 29.7 kB / 471.6 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.1375, allocations: 0 / 471.6 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.542e-05/0.1375, allocations: 3.938 kB / 471.6 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.038e-06/0.1375, allocations: 3.984 kB / 471.6 MB, free: 11.51 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.019e-06/0.1375, allocations: 3.938 kB / 471.6 MB, free: 11.51 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.849e-05/0.1376, allocations: 4 kB / 471.6 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.376e-06/0.1376, allocations: 4.031 kB / 471.6 MB, free: 11.5 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 8.32e-05/0.1377, allocations: 131.5 kB / 471.7 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.658e-06/0.1377, allocations: 4 kB / 471.7 MB, free: 11.35 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.168e-05/0.1377, allocations: 11.02 kB / 471.7 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.814e-06/0.1377, allocations: 0 / 471.7 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.1377, allocations: 0 / 471.7 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.164e-06/0.1377, allocations: 0 / 471.7 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001018/0.1378, allocations: 149.7 kB / 471.9 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.1378, allocations: 4 kB / 471.9 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.9e-07/0.1378, allocations: 4 kB / 471.9 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.72e-07/0.1378, allocations: 0 / 471.9 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.947e-06/0.1379, allocations: 3.938 kB / 471.9 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.31e-07/0.1379, allocations: 0 / 471.9 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1379, allocations: 0 / 471.9 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.691e-05/0.138, allocations: 98.77 kB / 472 MB, free: 11.01 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.249e-05/0.138, allocations: 77.11 kB / 472.1 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.256e-05/0.138, allocations: 3.938 kB / 472.1 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.326e-06/0.138, allocations: 4.031 kB / 472.1 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.263e-05/0.1381, allocations: 4 kB / 472.1 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.947e-06/0.1381, allocations: 3.984 kB / 472.1 MB, free: 10.9 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.517e-05/0.1381, allocations: 75.28 kB / 472.2 MB, free: 10.83 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1381, allocations: 0 / 472.2 MB, free: 10.83 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003088/0.1384, allocations: 55.98 kB / 472.2 MB, free: 10.77 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.0004329/0.1389, allocations: 200.8 kB / 472.4 MB, free: 10.58 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.698e-05/0.139, allocations: 59.34 kB / 472.5 MB, free: 10.51 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.522e-06/0.139, allocations: 0 / 472.5 MB, free: 10.51 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.632e-05/0.139, allocations: 59.34 kB / 472.5 MB, free: 10.44 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001318/0.1392, allocations: 6.75 kB / 472.5 MB, free: 10.43 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001823/0.1394, allocations: 78.66 kB / 472.6 MB, free: 10.33 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000268/0.1396, allocations: 0.6731 MB / 473.3 MB, free: 9.629 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.283e-06/0.1396, allocations: 8.125 kB / 473.3 MB, free: 9.621 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.122e-05/0.1397, allocations: 7.438 kB / 473.3 MB, free: 9.613 MB / 350.1 MB Notification: Performance of SimCode: time 2e-07/0.1397, allocations: 0 / 473.3 MB, free: 9.613 MB / 350.1 MB Notification: Performance of Templates: time 0.004498/0.1442, allocations: 1.62 MB / 474.9 MB, free: 7.992 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestBooleanFunctions/TestBooleanFunctions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.TestBooleanFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches