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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001412/0.001412, allocations: 99.66 kB / 21.18 MB, free: 0.5273 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001545/0.001545, allocations: 215.6 kB / 24.48 MB, free: 3.84 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.517/1.517, allocations: 230.6 MB / 258.3 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2473/0.2473, allocations: 44.94 MB / 359.6 MB, free: 6.082 MB / 286.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.TestBooleanFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestBooleanFunctions") translateModel(ModelicaTest.Math.TestBooleanFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestBooleanFunctions") [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002295/0.002295, allocations: 67.91 kB / 0.4942 GB, free: 10.08 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3697/0.372, allocations: 65.47 MB / 0.5582 GB, free: 7.516 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestBooleanFunctions): time 0.001657/0.3737, allocations: 495.8 kB / 0.5586 GB, free: 7.031 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009112/0.3746, allocations: 377.3 kB / 0.559 GB, free: 6.664 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.493e-05/0.3746, allocations: 4 kB / 0.559 GB, free: 6.66 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.239e-05/0.3746, allocations: 0 / 0.559 GB, free: 6.66 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.35e-06/0.3746, allocations: 0 / 0.559 GB, free: 6.66 MB / 398.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.0008842/0.3755, allocations: 203.5 kB / 0.5592 GB, free: 6.461 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.171e-05/0.3755, allocations: 8 kB / 0.5592 GB, free: 6.453 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.048e-05/0.3756, allocations: 4 kB / 0.5592 GB, free: 6.449 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.429e-05/0.3756, allocations: 3.984 kB / 0.5592 GB, free: 6.445 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.706e-05/0.3756, allocations: 4 kB / 0.5592 GB, free: 6.441 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.512e-06/0.3756, allocations: 0 / 0.5592 GB, free: 6.441 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000399/0.376, allocations: 223.5 kB / 0.5594 GB, free: 6.223 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.803e-06/0.376, allocations: 0 / 0.5594 GB, free: 6.223 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.179e-05/0.376, allocations: 4 kB / 0.5594 GB, free: 6.219 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000261/0.3763, allocations: 154 kB / 0.5596 GB, free: 6.074 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.3763, allocations: 4 kB / 0.5596 GB, free: 6.07 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3763, allocations: 0 / 0.5596 GB, free: 6.07 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.44e-06/0.3763, allocations: 7.938 kB / 0.5596 GB, free: 6.062 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.0003804/0.3767, allocations: 295.9 kB / 0.5599 GB, free: 5.734 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.749e-05/0.3767, allocations: 8.031 kB / 0.5599 GB, free: 5.727 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.396e-05/0.3768, allocations: 0.9375 kB / 0.5599 GB, free: 5.727 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.93e-05/0.3768, allocations: 102.5 kB / 0.56 GB, free: 5.602 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.931e-05/0.3769, allocations: 4.375 kB / 0.56 GB, free: 5.598 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.016e-05/0.3769, allocations: 384 / 0.56 GB, free: 5.598 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001077/0.377, allocations: 51.97 kB / 0.56 GB, free: 5.535 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.245e-06/0.377, allocations: 4.188 kB / 0.56 GB, free: 5.531 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.06e-05/0.377, allocations: 3.938 kB / 0.56 GB, free: 5.527 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.187e-06/0.377, allocations: 0 / 0.56 GB, free: 5.527 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.404e-05/0.377, allocations: 37.62 kB / 0.5601 GB, free: 5.484 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000142/0.3772, allocations: 101.3 kB / 0.5602 GB, free: 5.355 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.406e-05/0.3773, allocations: 40.28 kB / 0.5602 GB, free: 5.301 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.336e-05/0.3773, allocations: 34.66 kB / 0.5603 GB, free: 5.258 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.897e-06/0.3773, allocations: 0 / 0.5603 GB, free: 5.258 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.446e-05/0.3773, allocations: 60.2 kB / 0.5603 GB, free: 5.184 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.3773, allocations: 0 / 0.5603 GB, free: 5.184 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002068/0.3776, allocations: 130.6 kB / 0.5604 GB, free: 5.031 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.23e-05/0.3776, allocations: 81.11 kB / 0.5605 GB, free: 4.934 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.76e-05/0.3777, allocations: 93.98 kB / 0.5606 GB, free: 4.832 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.523e-05/0.3777, allocations: 25.7 kB / 0.5606 GB, free: 4.801 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.342e-05/0.3777, allocations: 80.14 kB / 0.5607 GB, free: 4.719 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.835e-05/0.3778, allocations: 0 / 0.5607 GB, free: 4.719 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.327e-05/0.3778, allocations: 21.7 kB / 0.5607 GB, free: 4.691 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001379/0.3779, allocations: 310.8 kB / 0.561 GB, free: 4.379 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.487e-05/0.3779, allocations: 25.7 kB / 0.561 GB, free: 4.348 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.293e-05/0.378, allocations: 29.7 kB / 0.5611 GB, free: 4.312 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.571e-05/0.378, allocations: 60.27 kB / 0.5611 GB, free: 4.238 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.378, allocations: 0 / 0.5611 GB, free: 4.238 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.246e-05/0.3781, allocations: 97.09 kB / 0.5612 GB, free: 4.125 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.363e-05/0.3782, allocations: 33.7 kB / 0.5613 GB, free: 4.086 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/0.3782, allocations: 0 / 0.5613 GB, free: 4.086 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.282e-05/0.3782, allocations: 0 / 0.5613 GB, free: 4.086 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.946e-06/0.3782, allocations: 3.938 kB / 0.5613 GB, free: 4.082 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.348e-06/0.3782, allocations: 0 / 0.5613 GB, free: 4.082 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.316e-05/0.3782, allocations: 0 / 0.5613 GB, free: 4.082 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.33e-06/0.3782, allocations: 4 kB / 0.5613 GB, free: 4.078 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.048e-05/0.3783, allocations: 135.5 kB / 0.5614 GB, free: 3.93 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.638e-06/0.3783, allocations: 4 kB / 0.5614 GB, free: 3.926 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.318e-05/0.3783, allocations: 7.031 kB / 0.5614 GB, free: 3.918 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.396e-06/0.3783, allocations: 3.938 kB / 0.5614 GB, free: 3.914 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.3783, allocations: 3.938 kB / 0.5614 GB, free: 3.91 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.024e-06/0.3783, allocations: 0 / 0.5614 GB, free: 3.91 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.409e-05/0.3784, allocations: 101.3 kB / 0.5615 GB, free: 3.781 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.3784, allocations: 4 kB / 0.5615 GB, free: 3.777 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.525e-06/0.3784, allocations: 3.984 kB / 0.5615 GB, free: 3.773 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.3784, allocations: 0 / 0.5615 GB, free: 3.773 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.681e-06/0.3784, allocations: 0 / 0.5615 GB, free: 3.773 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.3784, allocations: 0 / 0.5615 GB, free: 3.773 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.3784, allocations: 3.938 kB / 0.5615 GB, free: 3.77 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001262/0.3786, allocations: 124.5 kB / 0.5616 GB, free: 3.617 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.779e-06/0.3786, allocations: 3.938 kB / 0.5616 GB, free: 3.613 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.354e-05/0.3786, allocations: 4 kB / 0.5616 GB, free: 3.609 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.077e-06/0.3786, allocations: 0 / 0.5616 GB, free: 3.609 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.529e-05/0.3786, allocations: 3.938 kB / 0.5616 GB, free: 3.605 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.118e-06/0.3786, allocations: 3.984 kB / 0.5617 GB, free: 3.602 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.504e-05/0.3786, allocations: 79.28 kB / 0.5617 GB, free: 3.523 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3786, allocations: 0 / 0.5617 GB, free: 3.523 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002998/0.3789, allocations: 55.86 kB / 0.5618 GB, free: 3.469 MB / 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.0005044/0.3795, allocations: 191.1 kB / 0.562 GB, free: 3.281 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001631/0.3796, allocations: 118.7 kB / 0.5621 GB, free: 3.141 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.3796, allocations: 0 / 0.5621 GB, free: 3.141 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 7.148e-05/0.3797, allocations: 81.11 kB / 0.5622 GB, free: 3.043 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001454/0.3798, allocations: 4 kB / 0.5622 GB, free: 3.039 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002844/0.3801, allocations: 136.4 kB / 0.5623 GB, free: 2.867 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.367e-05/0.3802, allocations: 51.48 kB / 0.5623 GB, free: 2.797 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.107e-05/0.3802, allocations: 15.44 kB / 0.5623 GB, free: 2.781 MB / 398.1 MB Notification: Performance of SimCode: time 1.032e-06/0.3802, allocations: 0 / 0.5623 GB, free: 2.781 MB / 398.1 MB Notification: Performance of Templates: time 0.004522/0.3847, allocations: 1.495 MB / 0.5638 GB, free: 1.285 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.TestBooleanFunctions.makefile [Timeout 660] (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) [Timeout 480] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.372406556736678]