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.001082/0.001082, allocations: 104.2 kB / 17.63 MB, free: 5.523 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.001047/0.001047, allocations: 191.9 kB / 18.56 MB, free: 4.605 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.289/1.289, allocations: 222.9 MB / 242.2 MB, free: 15.22 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.2085/0.2085, allocations: 44.18 MB / 336.6 MB, free: 2.785 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001279/0.001279, allocations: 61.44 kB / 408.4 MB, free: 27.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.102, allocations: 60.82 MB / 469.2 MB, free: 14.41 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestBooleanFunctions): time 0.001957/0.104, allocations: 495.4 kB / 469.7 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009546/0.105, allocations: 369.4 kB / 470.1 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.321e-05/0.105, allocations: 0 / 470.1 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.542e-05/0.1051, allocations: 0 / 470.1 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.168e-06/0.1051, allocations: 0 / 470.1 MB, free: 13.57 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.0008715/0.106, allocations: 199.5 kB / 470.3 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.266e-05/0.106, allocations: 7.984 kB / 470.3 MB, free: 13.37 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.419e-05/0.1061, allocations: 4 kB / 470.3 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.382e-05/0.1061, allocations: 3.938 kB / 470.3 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.189e-05/0.1061, allocations: 7.984 kB / 470.3 MB, free: 13.35 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.592e-06/0.1062, allocations: 0 / 470.3 MB, free: 13.35 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003306/0.1065, allocations: 167.7 kB / 470.5 MB, free: 13.19 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.558e-06/0.1065, allocations: 0 / 470.5 MB, free: 13.19 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.945e-05/0.1065, allocations: 0 / 470.5 MB, free: 13.19 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002645/0.1068, allocations: 151.8 kB / 470.6 MB, free: 13.04 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.1068, allocations: 0 / 470.6 MB, free: 13.04 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1068, allocations: 0 / 470.6 MB, free: 13.04 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.663e-06/0.1068, allocations: 0 / 470.6 MB, free: 13.04 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.0004729/0.1073, allocations: 381.2 kB / 471 MB, free: 12.61 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.327e-05/0.1074, allocations: 15.97 kB / 471 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.132e-05/0.1074, allocations: 4.922 kB / 471 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001305/0.1076, allocations: 164.4 kB / 471.2 MB, free: 12.39 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.883e-05/0.1076, allocations: 384 / 471.2 MB, free: 12.39 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.156e-05/0.1076, allocations: 8.312 kB / 471.2 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001214/0.1078, allocations: 26.27 kB / 471.2 MB, free: 12.35 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.103e-05/0.1078, allocations: 192 / 471.2 MB, free: 12.35 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.4e-05/0.1078, allocations: 3.938 kB / 471.2 MB, free: 12.35 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.592e-06/0.1078, allocations: 0 / 471.2 MB, free: 12.35 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.31e-05/0.1078, allocations: 4 kB / 471.2 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002019/0.108, allocations: 153.7 kB / 471.4 MB, free: 12.14 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.523e-05/0.1081, allocations: 22.55 kB / 471.4 MB, free: 12.11 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.846e-05/0.1081, allocations: 8.844 kB / 471.4 MB, free: 12.1 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.177e-06/0.1081, allocations: 0 / 471.4 MB, free: 12.1 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.595e-05/0.1082, allocations: 56.27 kB / 471.4 MB, free: 12.03 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.293e-06/0.1082, allocations: 0 / 471.4 MB, free: 12.03 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002195/0.1084, allocations: 75.39 kB / 471.5 MB, free: 11.95 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.572e-05/0.1085, allocations: 85.05 kB / 471.6 MB, free: 11.84 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.346e-05/0.1086, allocations: 89.86 kB / 471.7 MB, free: 11.75 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.593e-05/0.1086, allocations: 25.7 kB / 471.7 MB, free: 11.71 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.817e-05/0.1087, allocations: 80.14 kB / 471.8 MB, free: 11.63 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.683e-05/0.1087, allocations: 0 / 471.8 MB, free: 11.63 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.384e-05/0.1087, allocations: 13.72 kB / 471.8 MB, free: 11.61 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001562/0.1089, allocations: 310.8 kB / 472.1 MB, free: 11.3 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.22e-05/0.1089, allocations: 4.125 kB / 472.1 MB, free: 11.3 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.578e-06/0.1089, allocations: 3.984 kB / 472.1 MB, free: 11.29 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.15e-05/0.109, allocations: 64.27 kB / 472.2 MB, free: 11.21 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.714e-06/0.109, allocations: 0 / 472.2 MB, free: 11.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.318e-05/0.1091, allocations: 59.41 kB / 472.2 MB, free: 11.14 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.837e-05/0.1092, allocations: 29.7 kB / 472.3 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.1092, allocations: 7.875 kB / 472.3 MB, free: 11.1 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.921e-05/0.1092, allocations: 7.922 kB / 472.3 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.425e-06/0.1092, allocations: 4 kB / 472.3 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.811e-06/0.1092, allocations: 4.094 kB / 472.3 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.683e-05/0.1092, allocations: 0 / 472.3 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.292e-06/0.1092, allocations: 0 / 472.3 MB, free: 11.09 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 9.113e-05/0.1093, allocations: 139.5 kB / 472.4 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.634e-06/0.1093, allocations: 0 / 472.4 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.294e-05/0.1094, allocations: 11.02 kB / 472.4 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-06/0.1094, allocations: 0 / 472.4 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.1094, allocations: 0 / 472.4 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.405e-06/0.1094, allocations: 0 / 472.4 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001004/0.1095, allocations: 153.7 kB / 472.6 MB, free: 10.72 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.1095, allocations: 0 / 472.6 MB, free: 10.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.1095, allocations: 0 / 472.6 MB, free: 10.72 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.884e-06/0.1095, allocations: 0 / 472.6 MB, free: 10.72 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.554e-06/0.1095, allocations: 7.875 kB / 472.6 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.1095, allocations: 0 / 472.6 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.1095, allocations: 0 / 472.6 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.578e-05/0.1096, allocations: 94.77 kB / 472.7 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.561e-05/0.1097, allocations: 85.14 kB / 472.8 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.633e-05/0.1097, allocations: 7.938 kB / 472.8 MB, free: 10.49 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.028e-05/0.1097, allocations: 0 / 472.8 MB, free: 10.49 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.041e-05/0.1097, allocations: 0 / 472.8 MB, free: 10.49 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.384e-06/0.1098, allocations: 0 / 472.8 MB, free: 10.49 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.971e-05/0.1098, allocations: 79.27 kB / 472.9 MB, free: 10.41 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1098, allocations: 0 / 472.9 MB, free: 10.41 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003219/0.1101, allocations: 52 kB / 472.9 MB, free: 10.36 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.0004284/0.1106, allocations: 188.5 kB / 473.1 MB, free: 10.17 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.967e-05/0.1107, allocations: 59.41 kB / 473.2 MB, free: 10.1 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.1107, allocations: 0 / 473.2 MB, free: 10.1 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.134e-05/0.1107, allocations: 55.41 kB / 473.2 MB, free: 10.04 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001254/0.1109, allocations: 6.391 kB / 473.2 MB, free: 10.03 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002/0.1111, allocations: 92.77 kB / 473.3 MB, free: 9.914 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000308/0.1114, allocations: 0.673 MB / 474 MB, free: 9.215 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.568e-06/0.1114, allocations: 0 / 474 MB, free: 9.215 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.595e-05/0.1114, allocations: 7.438 kB / 474 MB, free: 9.207 MB / 350.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1114, allocations: 4 kB / 474 MB, free: 9.203 MB / 350.1 MB Notification: Performance of Templates: time 0.004781/0.1162, allocations: 1.613 MB / 475.6 MB, free: 7.59 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