Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestBooleanFunctions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001656/0.001656, allocations: 113.1 kB / 21.85 MB, free: 80 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001488/0.001488, allocations: 209.5 kB / 25.13 MB, free: 3.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.499/1.499, allocations: 230.4 MB / 258.7 MB, free: 8.043 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2302/0.2302, allocations: 46.94 MB / 362.1 MB, free: 4.215 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Math.TestBooleanFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestBooleanFunctions") translateModel(ModelicaTest.Math.TestBooleanFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestBooleanFunctions") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002383/0.002383, allocations: 87.84 kB / 0.4978 GB, free: 7.398 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3546/0.3569, allocations: 66.08 MB / 0.5623 GB, free: 4.254 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestBooleanFunctions): time 0.001656/0.3586, allocations: 485.1 kB / 0.5628 GB, free: 3.781 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009085/0.3595, allocations: 389.1 kB / 0.5631 GB, free: 3.402 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.601e-05/0.3595, allocations: 4 kB / 0.5632 GB, free: 3.398 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.236e-05/0.3595, allocations: 0 / 0.5632 GB, free: 3.398 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.981e-06/0.3595, allocations: 4 kB / 0.5632 GB, free: 3.395 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.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.0008578/0.3604, allocations: 203 kB / 0.5633 GB, free: 3.199 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.248e-05/0.3604, allocations: 8 kB / 0.5634 GB, free: 3.191 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.456e-05/0.3605, allocations: 0 / 0.5634 GB, free: 3.191 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.499e-05/0.3605, allocations: 3.984 kB / 0.5634 GB, free: 3.188 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.93e-05/0.3605, allocations: 4 kB / 0.5634 GB, free: 3.184 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.31e-06/0.3605, allocations: 0 / 0.5634 GB, free: 3.184 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004201/0.3609, allocations: 223.6 kB / 0.5636 GB, free: 2.965 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.448e-06/0.3609, allocations: 0 / 0.5636 GB, free: 2.965 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.048e-05/0.361, allocations: 4 kB / 0.5636 GB, free: 2.961 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000266/0.3612, allocations: 154.2 kB / 0.5637 GB, free: 2.816 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.3612, allocations: 4 kB / 0.5637 GB, free: 2.812 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.3612, allocations: 0 / 0.5637 GB, free: 2.812 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.871e-06/0.3612, allocations: 0 / 0.5637 GB, free: 2.812 MB / 398.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.0003855/0.3616, allocations: 291.9 kB / 0.564 GB, free: 2.488 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.457e-05/0.3617, allocations: 11.97 kB / 0.564 GB, free: 2.477 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.241e-05/0.3617, allocations: 4.938 kB / 0.564 GB, free: 2.473 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.664e-05/0.3618, allocations: 102.5 kB / 0.5641 GB, free: 2.348 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.171e-05/0.3618, allocations: 8.375 kB / 0.5641 GB, free: 2.34 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.103e-06/0.3618, allocations: 384 / 0.5641 GB, free: 2.34 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001116/0.3619, allocations: 63.95 kB / 0.5642 GB, free: 2.266 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.957e-06/0.3619, allocations: 192 / 0.5642 GB, free: 2.266 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.116e-05/0.3619, allocations: 3.938 kB / 0.5642 GB, free: 2.262 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.362, allocations: 0 / 0.5642 GB, free: 2.262 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.127e-05/0.362, allocations: 25.7 kB / 0.5642 GB, free: 2.23 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001498/0.3621, allocations: 116.8 kB / 0.5643 GB, free: 2.074 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.494e-05/0.3622, allocations: 56.2 kB / 0.5644 GB, free: 2.004 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.119e-05/0.3622, allocations: 34.66 kB / 0.5644 GB, free: 1.961 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.657e-06/0.3622, allocations: 3.938 kB / 0.5644 GB, free: 1.957 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.377e-05/0.3623, allocations: 56.27 kB / 0.5645 GB, free: 1.887 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.82e-07/0.3623, allocations: 0 / 0.5645 GB, free: 1.887 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002151/0.3625, allocations: 126.7 kB / 0.5646 GB, free: 1.738 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.372e-05/0.3626, allocations: 84.98 kB / 0.5647 GB, free: 1.637 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.45e-05/0.3626, allocations: 93.98 kB / 0.5648 GB, free: 1.535 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.918e-05/0.3626, allocations: 29.7 kB / 0.5648 GB, free: 1.5 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.434e-05/0.3627, allocations: 80.14 kB / 0.5649 GB, free: 1.418 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.94e-05/0.3627, allocations: 0 / 0.5649 GB, free: 1.418 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.749e-05/0.3627, allocations: 9.719 kB / 0.5649 GB, free: 1.402 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001503/0.3629, allocations: 314.8 kB / 0.5652 GB, free: 1.086 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.476e-05/0.3629, allocations: 25.7 kB / 0.5652 GB, free: 1.055 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.287e-05/0.3629, allocations: 33.69 kB / 0.5652 GB, free: 1.016 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.688e-05/0.363, allocations: 64.33 kB / 0.5653 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.352e-06/0.363, allocations: 0 / 0.5653 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.988e-05/0.3631, allocations: 85.11 kB / 0.5654 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.529e-05/0.3631, allocations: 36.19 kB / 0.5654 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.379e-06/0.3631, allocations: 3.938 kB / 0.5654 GB, free: 0.793 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.595e-05/0.3631, allocations: 7.938 kB / 0.5654 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.52e-07/0.3631, allocations: 0 / 0.5654 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.228e-06/0.3631, allocations: 0 / 0.5654 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.611e-05/0.3632, allocations: 4 kB / 0.5654 GB, free: 0.7812 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.66e-06/0.3632, allocations: 32 / 0.5654 GB, free: 0.7812 MB / 398.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.753e-05/0.3633, allocations: 139.5 kB / 0.5656 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.324e-06/0.3633, allocations: 0 / 0.5656 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.363e-05/0.3633, allocations: 6.938 kB / 0.5656 GB, free: 0.6211 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.82e-07/0.3633, allocations: 0 / 0.5656 GB, free: 0.6211 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.087e-06/0.3633, allocations: 0 / 0.5656 GB, free: 0.6211 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.442e-06/0.3633, allocations: 3.984 kB / 0.5656 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001053/0.3634, allocations: 116.8 kB / 0.5657 GB, free: 472 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.72e-07/0.3634, allocations: 0 / 0.5657 GB, free: 472 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.41e-07/0.3634, allocations: 0 / 0.5657 GB, free: 472 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.142e-06/0.3634, allocations: 4 kB / 0.5657 GB, free: 468 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.495e-06/0.3634, allocations: 3.938 kB / 0.5657 GB, free: 464 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.348e-06/0.3634, allocations: 4 kB / 0.5657 GB, free: 460 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.3634, allocations: 0 / 0.5657 GB, free: 460 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001214/0.3635, allocations: 120.5 kB / 0.5658 GB, free: 308 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.841e-06/0.3635, allocations: 8 kB / 0.5658 GB, free: 300 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.215e-05/0.3636, allocations: 3.938 kB / 0.5658 GB, free: 296 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.236e-05/0.3636, allocations: 4.031 kB / 0.5658 GB, free: 292 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.418e-05/0.3636, allocations: 11.91 kB / 0.5658 GB, free: 280 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.141e-06/0.3636, allocations: 4 kB / 0.5658 GB, free: 276 kB / 398.1 MB Notification: Performance of sorting global known variables: time 4.213e-05/0.3636, allocations: 79.22 kB / 0.5659 GB, free: 196 kB / 398.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.3636, allocations: 0 / 0.5659 GB, free: 196 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002813/0.3639, allocations: 51.88 kB / 0.566 GB, free: 144 kB / 398.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.0004358/0.3644, allocations: 193.5 kB / 0.5662 GB, free: 15.95 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001335/0.3645, allocations: 106.8 kB / 0.5663 GB, free: 15.82 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.3645, allocations: 0 / 0.5663 GB, free: 15.82 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 7.676e-05/0.3646, allocations: 85.09 kB / 0.5663 GB, free: 15.71 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001263/0.3647, allocations: 8 kB / 0.5663 GB, free: 15.71 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002024/0.3649, allocations: 110.6 kB / 0.5664 GB, free: 15.57 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000308/0.3652, allocations: 0.6729 MB / 0.5671 GB, free: 14.87 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.38e-06/0.3652, allocations: 0 / 0.5671 GB, free: 14.87 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.467e-05/0.3652, allocations: 11.56 kB / 0.5671 GB, free: 14.86 MB / 414.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3652, allocations: 0 / 0.5671 GB, free: 14.86 MB / 414.1 MB Notification: Performance of Templates: time 0.004513/0.3697, allocations: 1.515 MB / 0.5686 GB, free: 13.34 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestBooleanFunctions.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestBooleanFunctions.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestBooleanFunctions.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestBooleanFunctions.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestBooleanFunctions.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestBooleanFunctions -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestBooleanFunctions.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestBooleanFunctions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/TestBooleanFunctions/TestBooleanFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestBooleanFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.024714314145967]