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.001329/0.001329, allocations: 101.5 kB / 17.85 MB, free: 5.66 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.001365/0.001365, allocations: 194 kB / 18.77 MB, free: 4.742 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.327/1.327, allocations: 222.9 MB / 242.4 MB, free: 15.47 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.2042/0.2042, allocations: 44.17 MB / 336.8 MB, free: 2.926 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001417/0.001417, allocations: 64.56 kB / 408.3 MB, free: 27.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1037, allocations: 60.84 MB / 469.2 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestBooleanFunctions): time 0.00185/0.1056, allocations: 0.5333 MB / 469.7 MB, free: 14.3 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008286/0.1064, allocations: 389.5 kB / 470.1 MB, free: 13.92 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.108e-05/0.1065, allocations: 0 / 470.1 MB, free: 13.92 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.478e-05/0.1065, allocations: 0 / 470.1 MB, free: 13.92 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.449e-06/0.1065, allocations: 0 / 470.1 MB, free: 13.92 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.0007188/0.1072, allocations: 163.7 kB / 470.3 MB, free: 13.76 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.269e-05/0.1073, allocations: 8 kB / 470.3 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.353e-05/0.1073, allocations: 0 / 470.3 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.566e-05/0.1074, allocations: 3.984 kB / 470.3 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.077e-05/0.1074, allocations: 3.938 kB / 470.3 MB, free: 13.74 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.332e-06/0.1074, allocations: 4 kB / 470.3 MB, free: 13.74 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000296/0.1077, allocations: 159.7 kB / 470.4 MB, free: 13.58 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.071e-05/0.1077, allocations: 7.984 kB / 470.4 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.789e-05/0.1077, allocations: 3.938 kB / 470.4 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001739/0.1079, allocations: 103.8 kB / 470.5 MB, free: 13.47 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.1079, allocations: 0 / 470.5 MB, free: 13.47 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.12e-07/0.1079, allocations: 4 kB / 470.5 MB, free: 13.46 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.286e-06/0.1079, allocations: 0 / 470.5 MB, free: 13.46 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.0003341/0.1083, allocations: 365.3 kB / 470.9 MB, free: 13.05 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.371e-05/0.1083, allocations: 11.97 kB / 470.9 MB, free: 13.04 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.132e-05/0.1084, allocations: 4.938 kB / 470.9 MB, free: 13.04 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.731e-05/0.1085, allocations: 160.4 kB / 471.1 MB, free: 12.84 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.189e-05/0.1085, allocations: 4.359 kB / 471.1 MB, free: 12.84 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.344e-06/0.1085, allocations: 384 / 471.1 MB, free: 12.84 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.878e-05/0.1086, allocations: 30.27 kB / 471.1 MB, free: 12.8 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.1086, allocations: 8.172 kB / 471.1 MB, free: 12.79 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.117e-06/0.1086, allocations: 3.938 kB / 471.1 MB, free: 12.79 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.648e-06/0.1086, allocations: 0 / 471.1 MB, free: 12.79 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.744e-05/0.1086, allocations: 0 / 471.1 MB, free: 12.79 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001219/0.1088, allocations: 149.6 kB / 471.3 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.593e-05/0.1088, allocations: 22.56 kB / 471.3 MB, free: 12.56 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.384e-05/0.1088, allocations: 4.859 kB / 471.3 MB, free: 12.55 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.614e-06/0.1088, allocations: 4.094 kB / 471.3 MB, free: 12.55 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.781e-05/0.1089, allocations: 60.27 kB / 471.4 MB, free: 12.48 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.1089, allocations: 3.938 kB / 471.4 MB, free: 12.47 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001532/0.109, allocations: 67.28 kB / 471.4 MB, free: 12.39 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.055e-05/0.1091, allocations: 85.09 kB / 471.5 MB, free: 12.29 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.894e-05/0.1091, allocations: 89.86 kB / 471.6 MB, free: 12.2 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.11e-05/0.1092, allocations: 25.7 kB / 471.6 MB, free: 12.16 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.552e-05/0.1092, allocations: 80.14 kB / 471.7 MB, free: 12.08 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.647e-05/0.1092, allocations: 4.125 kB / 471.7 MB, free: 12.08 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.503e-05/0.1092, allocations: 13.72 kB / 471.7 MB, free: 12.06 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001025/0.1094, allocations: 310.8 kB / 472 MB, free: 11.75 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.857e-06/0.1094, allocations: 0 / 472 MB, free: 11.75 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.306e-06/0.1094, allocations: 4 kB / 472 MB, free: 11.74 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.464e-05/0.1094, allocations: 64.27 kB / 472.1 MB, free: 11.66 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.1094, allocations: 0 / 472.1 MB, free: 11.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.764e-05/0.1095, allocations: 63.39 kB / 472.2 MB, free: 11.59 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.114e-05/0.1096, allocations: 37.73 kB / 472.2 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.068e-06/0.1096, allocations: 0 / 472.2 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.167e-05/0.1096, allocations: 3.938 kB / 472.2 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.032e-06/0.1096, allocations: 0 / 472.2 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.518e-06/0.1096, allocations: 0 / 472.2 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.529e-05/0.1096, allocations: 0 / 472.2 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.376e-05/0.1096, allocations: 4 kB / 472.2 MB, free: 11.54 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.145e-05/0.1097, allocations: 139.5 kB / 472.3 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.448e-06/0.1097, allocations: 4 kB / 472.3 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.218e-05/0.1097, allocations: 15.02 kB / 472.4 MB, free: 11.37 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.333e-06/0.1097, allocations: 4 kB / 472.4 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.1098, allocations: 0 / 472.4 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.854e-06/0.1098, allocations: 0 / 472.4 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.83e-05/0.1099, allocations: 149.7 kB / 472.5 MB, free: 11.17 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.1099, allocations: 0 / 472.5 MB, free: 11.17 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.41e-07/0.1099, allocations: 0 / 472.5 MB, free: 11.17 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.1099, allocations: 0 / 472.5 MB, free: 11.17 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.194e-06/0.1099, allocations: 7.938 kB / 472.5 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.1099, allocations: 0 / 472.5 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.1099, allocations: 0 / 472.5 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.439e-05/0.11, allocations: 98.77 kB / 472.6 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.955e-05/0.11, allocations: 77.11 kB / 472.7 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.321e-05/0.1101, allocations: 3.938 kB / 472.7 MB, free: 10.94 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.768e-06/0.1101, allocations: 0 / 472.7 MB, free: 10.94 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.178e-05/0.1101, allocations: 0 / 472.7 MB, free: 10.94 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.689e-06/0.1101, allocations: 4 kB / 472.7 MB, free: 10.94 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.607e-05/0.1101, allocations: 79.31 kB / 472.8 MB, free: 10.86 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.1101, allocations: 0 / 472.8 MB, free: 10.86 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002901/0.1104, allocations: 59.92 kB / 472.8 MB, free: 10.8 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.0004026/0.1108, allocations: 196.1 kB / 473 MB, free: 10.61 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.226e-05/0.1109, allocations: 63.39 kB / 473.1 MB, free: 10.54 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.1109, allocations: 0 / 473.1 MB, free: 10.54 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.019e-05/0.111, allocations: 63.41 kB / 473.1 MB, free: 10.46 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001193/0.1111, allocations: 7.922 kB / 473.1 MB, free: 10.45 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001643/0.1113, allocations: 100.4 kB / 473.2 MB, free: 10.32 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002128/0.1115, allocations: 0.6731 MB / 473.9 MB, free: 9.621 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.361e-05/0.1115, allocations: 11.44 kB / 473.9 MB, free: 9.609 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1115, allocations: 0 / 473.9 MB, free: 9.609 MB / 350.1 MB Notification: Performance of Templates: time 0.003284/0.1148, allocations: 1.571 MB / 475.5 MB, free: 8.039 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/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