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.00139/0.00139, allocations: 114.4 kB / 17.78 MB, free: 5.254 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.001331/0.001331, allocations: 183.8 kB / 18.71 MB, free: 4.332 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.321/1.321, allocations: 222.9 MB / 242.4 MB, free: 15.04 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.1961/0.1961, allocations: 44.19 MB / 336.7 MB, free: 2.648 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001134/0.001134, allocations: 63.91 kB / 470.5 MB, free: 13.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3016/0.3028, allocations: 60.82 MB / 0.5189 GB, free: 3.602 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestBooleanFunctions): time 0.001398/0.3042, allocations: 0.4968 MB / 0.5194 GB, free: 3.297 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007123/0.3049, allocations: 361.5 kB / 0.5197 GB, free: 3.082 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.436e-05/0.305, allocations: 0 / 0.5197 GB, free: 3.082 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.489e-05/0.305, allocations: 3.938 kB / 0.5197 GB, free: 3.078 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.199e-06/0.305, allocations: 5.125 kB / 0.5197 GB, free: 3.074 MB / 382.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.0007253/0.3057, allocations: 200.2 kB / 0.5199 GB, free: 2.996 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.634e-05/0.3058, allocations: 1.781 kB / 0.5199 GB, free: 2.996 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.719e-05/0.3058, allocations: 2 kB / 0.5199 GB, free: 2.996 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.166e-05/0.3058, allocations: 3.938 kB / 0.5199 GB, free: 2.992 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.852e-05/0.3059, allocations: 1.094 kB / 0.5199 GB, free: 2.992 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.41e-06/0.3059, allocations: 0 / 0.5199 GB, free: 2.992 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003794/0.3063, allocations: 210.5 kB / 0.5201 GB, free: 2.918 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.033e-06/0.3063, allocations: 0 / 0.5201 GB, free: 2.918 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.694e-05/0.3063, allocations: 1.219 kB / 0.5201 GB, free: 2.918 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002721/0.3066, allocations: 157.9 kB / 0.5203 GB, free: 2.875 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.858e-06/0.3066, allocations: 0 / 0.5203 GB, free: 2.875 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3066, allocations: 0.8125 kB / 0.5203 GB, free: 2.875 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.017e-05/0.3066, allocations: 0 / 0.5203 GB, free: 2.875 MB / 382.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.0002992/0.3069, allocations: 372.1 kB / 0.5206 GB, free: 2.473 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.76e-05/0.307, allocations: 10.27 kB / 0.5206 GB, free: 2.473 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.809e-05/0.307, allocations: 5.938 kB / 0.5206 GB, free: 2.469 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.178e-05/0.3071, allocations: 161.7 kB / 0.5208 GB, free: 2.273 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.314e-05/0.3071, allocations: 1.375 kB / 0.5208 GB, free: 2.273 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.934e-06/0.3071, allocations: 4.375 kB / 0.5208 GB, free: 2.27 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.21e-05/0.3072, allocations: 34.86 kB / 0.5208 GB, free: 2.234 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.163e-06/0.3072, allocations: 192 / 0.5208 GB, free: 2.234 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.949e-06/0.3072, allocations: 3.938 kB / 0.5208 GB, free: 2.23 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.489e-06/0.3072, allocations: 1.062 kB / 0.5208 GB, free: 2.23 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.978e-05/0.3073, allocations: 1.938 kB / 0.5208 GB, free: 2.23 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.741e-05/0.3073, allocations: 148.1 kB / 0.521 GB, free: 2.039 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.181e-05/0.3074, allocations: 17.89 kB / 0.521 GB, free: 2.016 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.079e-05/0.3074, allocations: 9.984 kB / 0.521 GB, free: 2.004 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.256e-06/0.3074, allocations: 0.75 kB / 0.521 GB, free: 2.004 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.908e-05/0.3074, allocations: 61.45 kB / 0.5211 GB, free: 1.93 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 9.02e-07/0.3075, allocations: 0 / 0.5211 GB, free: 1.93 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001571/0.3076, allocations: 70.02 kB / 0.5211 GB, free: 1.859 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.974e-05/0.3077, allocations: 77.86 kB / 0.5212 GB, free: 1.766 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.886e-05/0.3077, allocations: 91.86 kB / 0.5213 GB, free: 1.668 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.923e-06/0.3077, allocations: 29.83 kB / 0.5213 GB, free: 1.633 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.021e-05/0.3077, allocations: 80.14 kB / 0.5214 GB, free: 1.551 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.444e-05/0.3077, allocations: 1.344 kB / 0.5214 GB, free: 1.551 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.32e-05/0.3078, allocations: 12.73 kB / 0.5214 GB, free: 1.535 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.674e-05/0.3078, allocations: 311.6 kB / 0.5217 GB, free: 1.223 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.954e-06/0.3078, allocations: 1.156 kB / 0.5217 GB, free: 1.223 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.111e-06/0.3078, allocations: 1.562 kB / 0.5217 GB, free: 1.223 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.786e-05/0.3079, allocations: 72.48 kB / 0.5218 GB, free: 1.141 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.3079, allocations: 5.438 kB / 0.5218 GB, free: 1.137 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.268e-05/0.3079, allocations: 59.56 kB / 0.5219 GB, free: 1.074 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.447e-05/0.308, allocations: 34.95 kB / 0.5219 GB, free: 1.039 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.308, allocations: 5.656 kB / 0.5219 GB, free: 1.035 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.388e-05/0.308, allocations: 3.938 kB / 0.5219 GB, free: 1.031 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.623e-06/0.308, allocations: 1.062 kB / 0.5219 GB, free: 1.031 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.02e-06/0.308, allocations: 0.7969 kB / 0.5219 GB, free: 1.031 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.555e-05/0.308, allocations: 5.172 kB / 0.5219 GB, free: 1.027 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.673e-06/0.308, allocations: 0 / 0.5219 GB, free: 1.027 MB / 382.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 5.742e-05/0.3081, allocations: 143.6 kB / 0.522 GB, free: 0.875 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.897e-06/0.3081, allocations: 1.344 kB / 0.522 GB, free: 0.875 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.221e-05/0.3081, allocations: 15.75 kB / 0.5221 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.3081, allocations: 1.031 kB / 0.5221 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/0.3082, allocations: 0 / 0.5221 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.3082, allocations: 0.75 kB / 0.5221 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.561e-05/0.3082, allocations: 145.9 kB / 0.5222 GB, free: 0.6719 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.31e-07/0.3082, allocations: 3.938 kB / 0.5222 GB, free: 0.668 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.232e-06/0.3082, allocations: 3.938 kB / 0.5222 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.3083, allocations: 5.531 kB / 0.5222 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.647e-06/0.3083, allocations: 4.969 kB / 0.5222 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.893e-06/0.3083, allocations: 0.7969 kB / 0.5222 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.3083, allocations: 1.031 kB / 0.5222 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.568e-05/0.3084, allocations: 88.47 kB / 0.5223 GB, free: 0.5586 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.719e-05/0.3084, allocations: 77.86 kB / 0.5224 GB, free: 476 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.375e-05/0.3084, allocations: 5.953 kB / 0.5224 GB, free: 472 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.889e-06/0.3084, allocations: 5.375 kB / 0.5224 GB, free: 468 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.516e-05/0.3084, allocations: 0 / 0.5224 GB, free: 468 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.446e-06/0.3084, allocations: 2.141 kB / 0.5224 GB, free: 468 kB / 382.1 MB Notification: Performance of sorting global known variables: time 1.398e-05/0.3085, allocations: 75.28 kB / 0.5225 GB, free: 392 kB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3085, allocations: 0 / 0.5225 GB, free: 392 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002967/0.3088, allocations: 56.3 kB / 0.5225 GB, free: 380 kB / 382.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.0004035/0.3092, allocations: 185.4 kB / 0.5227 GB, free: 272 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 9.178e-05/0.3093, allocations: 73.77 kB / 0.5228 GB, free: 192 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.3093, allocations: 0 / 0.5228 GB, free: 192 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.089e-05/0.3093, allocations: 55.47 kB / 0.5228 GB, free: 128 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001208/0.3094, allocations: 1.875 kB / 0.5228 GB, free: 128 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001545/0.3096, allocations: 73.44 kB / 0.5229 GB, free: 36 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002322/0.3098, allocations: 0.675 MB / 0.5235 GB, free: 15.34 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.64e-06/0.3099, allocations: 0 / 0.5235 GB, free: 15.34 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.114e-05/0.3099, allocations: 10.62 kB / 0.5236 GB, free: 15.33 MB / 398.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3099, allocations: 4 kB / 0.5236 GB, free: 15.32 MB / 398.1 MB Notification: Performance of Templates: time 0.004184/0.3141, allocations: 1.579 MB / 0.5251 GB, free: 15.11 MB / 398.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