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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001891/0.001891, allocations: 186.9 kB / 17.97 MB, free: 3.797 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.64/1.64, allocations: 222.9 MB / 241.6 MB, free: 10.99 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001008/0.001008, allocations: 109.9 kB / 291.9 MB, free: 10.95 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3592/0.3592, allocations: 44.13 MB / 386.1 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001101/0.001101, allocations: 52.11 kB / 457.7 MB, free: 2.332 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2971/0.2982, allocations: 60.81 MB / 0.5064 GB, free: 38.22 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestBooleanFunctions): time 0.001799/0.3001, allocations: 0.552 MB / 0.5069 GB, free: 37.9 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008259/0.3009, allocations: 386.8 kB / 0.5073 GB, free: 37.67 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.331e-05/0.3009, allocations: 0 / 0.5073 GB, free: 37.67 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.681e-05/0.301, allocations: 0 / 0.5073 GB, free: 37.67 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 5.11e-06/0.301, allocations: 0 / 0.5073 GB, free: 37.67 MB / 378.7 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.0007327/0.3017, allocations: 163.2 kB / 0.5074 GB, free: 37.6 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.544e-05/0.3018, allocations: 4.531 kB / 0.5075 GB, free: 37.6 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.173e-05/0.3018, allocations: 10.06 kB / 0.5075 GB, free: 37.59 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.304e-05/0.3018, allocations: 0 / 0.5075 GB, free: 37.59 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.228e-05/0.3019, allocations: 4.922 kB / 0.5075 GB, free: 37.59 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.572e-06/0.3019, allocations: 0 / 0.5075 GB, free: 37.59 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002724/0.3022, allocations: 169.5 kB / 0.5076 GB, free: 37.54 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 6.342e-06/0.3022, allocations: 3.938 kB / 0.5076 GB, free: 37.53 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 1.852e-05/0.3022, allocations: 1.312 kB / 0.5076 GB, free: 37.53 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002145/0.3024, allocations: 155.7 kB / 0.5078 GB, free: 37.49 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.3024, allocations: 0 / 0.5078 GB, free: 37.49 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.3024, allocations: 0 / 0.5078 GB, free: 37.49 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.206e-06/0.3024, allocations: 1.156 kB / 0.5078 GB, free: 37.49 MB / 378.7 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.0002596/0.3027, allocations: 381.8 kB / 0.5081 GB, free: 37.08 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.649e-05/0.3027, allocations: 9.375 kB / 0.5082 GB, free: 37.08 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.136e-05/0.3028, allocations: 5.969 kB / 0.5082 GB, free: 37.07 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.872e-05/0.3028, allocations: 160.4 kB / 0.5083 GB, free: 36.88 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.449e-05/0.3029, allocations: 1.469 kB / 0.5083 GB, free: 36.88 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.568e-06/0.3029, allocations: 1.5 kB / 0.5083 GB, free: 36.88 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.938e-05/0.303, allocations: 28.52 kB / 0.5083 GB, free: 36.85 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.303, allocations: 192 / 0.5083 GB, free: 36.85 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.24e-05/0.303, allocations: 12.47 kB / 0.5084 GB, free: 36.84 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.82e-06/0.303, allocations: 0 / 0.5084 GB, free: 36.84 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.901e-05/0.303, allocations: 5 kB / 0.5084 GB, free: 36.84 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.29e-05/0.3031, allocations: 146.6 kB / 0.5085 GB, free: 36.64 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.038e-05/0.3032, allocations: 16.8 kB / 0.5085 GB, free: 36.62 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.222e-05/0.3032, allocations: 7.703 kB / 0.5085 GB, free: 36.61 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.847e-06/0.3032, allocations: 0 / 0.5085 GB, free: 36.61 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.934e-05/0.3032, allocations: 63.55 kB / 0.5086 GB, free: 36.54 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 8.21e-07/0.3032, allocations: 3.219 kB / 0.5086 GB, free: 36.54 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001346/0.3034, allocations: 69.38 kB / 0.5087 GB, free: 36.46 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.503e-05/0.3034, allocations: 80.53 kB / 0.5087 GB, free: 36.37 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.9e-05/0.3034, allocations: 89.86 kB / 0.5088 GB, free: 36.27 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.101e-06/0.3034, allocations: 25.7 kB / 0.5088 GB, free: 36.24 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.977e-06/0.3035, allocations: 83.02 kB / 0.5089 GB, free: 36.16 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.237e-05/0.3035, allocations: 0 / 0.5089 GB, free: 36.16 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.226e-05/0.3035, allocations: 16.94 kB / 0.5089 GB, free: 36.14 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.353e-05/0.3035, allocations: 310.8 kB / 0.5092 GB, free: 35.83 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.927e-06/0.3036, allocations: 0 / 0.5092 GB, free: 35.83 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.811e-06/0.3036, allocations: 3.031 kB / 0.5092 GB, free: 35.83 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.927e-05/0.3036, allocations: 66.44 kB / 0.5093 GB, free: 35.75 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.3036, allocations: 0 / 0.5093 GB, free: 35.75 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.228e-05/0.3037, allocations: 61.06 kB / 0.5094 GB, free: 35.69 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.213e-05/0.3037, allocations: 31.39 kB / 0.5094 GB, free: 35.66 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.797e-06/0.3037, allocations: 4.094 kB / 0.5094 GB, free: 35.65 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.4e-05/0.3037, allocations: 3.938 kB / 0.5094 GB, free: 35.65 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.633e-06/0.3037, allocations: 3.375 kB / 0.5094 GB, free: 35.65 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.529e-06/0.3038, allocations: 3.062 kB / 0.5094 GB, free: 35.65 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.492e-05/0.3038, allocations: 0 / 0.5094 GB, free: 35.65 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.761e-06/0.3038, allocations: 0 / 0.5094 GB, free: 35.65 MB / 378.7 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 5.536e-05/0.3038, allocations: 138.4 kB / 0.5095 GB, free: 35.5 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.186e-06/0.3039, allocations: 3.938 kB / 0.5095 GB, free: 35.5 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.388e-06/0.3039, allocations: 10.66 kB / 0.5095 GB, free: 35.49 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.3039, allocations: 7 kB / 0.5096 GB, free: 35.48 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.3039, allocations: 0 / 0.5096 GB, free: 35.48 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.367e-06/0.3039, allocations: 7.266 kB / 0.5096 GB, free: 35.48 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.703e-05/0.304, allocations: 145.7 kB / 0.5097 GB, free: 35.29 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.304, allocations: 0 / 0.5097 GB, free: 35.29 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.683e-06/0.304, allocations: 6.938 kB / 0.5097 GB, free: 35.29 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.304, allocations: 0 / 0.5097 GB, free: 35.29 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.833e-06/0.304, allocations: 3.938 kB / 0.5097 GB, free: 35.28 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.304, allocations: 0 / 0.5097 GB, free: 35.28 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.542e-06/0.304, allocations: 3.281 kB / 0.5097 GB, free: 35.28 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002368/0.3042, allocations: 0.6373 MB / 0.5103 GB, free: 34.6 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.729e-05/0.3043, allocations: 77.11 kB / 0.5104 GB, free: 34.5 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.274e-05/0.3043, allocations: 5.766 kB / 0.5104 GB, free: 34.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.528e-06/0.3043, allocations: 0 / 0.5104 GB, free: 34.5 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.837e-05/0.3043, allocations: 0 / 0.5104 GB, free: 34.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.007e-06/0.3043, allocations: 0 / 0.5104 GB, free: 34.5 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.314e-05/0.3043, allocations: 86.09 kB / 0.5105 GB, free: 34.42 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.3044, allocations: 0 / 0.5105 GB, free: 34.42 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003896/0.3047, allocations: 51.42 kB / 0.5105 GB, free: 34.41 MB / 378.7 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.0003755/0.3051, allocations: 199.8 kB / 0.5107 GB, free: 34.3 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 6.829e-05/0.3052, allocations: 57.41 kB / 0.5108 GB, free: 34.24 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.3052, allocations: 4.062 kB / 0.5108 GB, free: 34.23 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.762e-05/0.3052, allocations: 58.31 kB / 0.5108 GB, free: 34.17 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001244/0.3054, allocations: 7.188 kB / 0.5109 GB, free: 34.17 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001687/0.3055, allocations: 185.2 kB / 0.511 GB, free: 33.96 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.231e-05/0.3056, allocations: 0.6724 MB / 0.5117 GB, free: 33.26 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 5.29e-06/0.3057, allocations: 0 / 0.5117 GB, free: 33.26 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.965e-06/0.3057, allocations: 10.19 kB / 0.5117 GB, free: 33.26 MB / 378.7 MB Notification: Performance of SimCode: time 4.31e-07/0.3057, allocations: 0 / 0.5117 GB, free: 33.26 MB / 378.7 MB Notification: Performance of Templates: time 0.003526/0.3092, allocations: 1.628 MB / 0.5133 GB, free: 33.08 MB / 378.7 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@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestBooleanFunctions/TestBooleanFunctions.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestBooleanFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches