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.00169/0.00169, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.002273/0.002273, allocations: 217.1 kB / 23.73 MB, free: 4.164 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.51/1.51, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.2235/0.2235, allocations: 44.93 MB / 358.8 MB, free: 6.059 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: "" <> buildModelFMU(ModelicaTest.Math.TestBooleanFunctions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestBooleanFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestBooleanFunctions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestBooleanFunctions",fmuType="me",version="2.0",platforms={"static"}) [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.002133/0.002133, allocations: 71.89 kB / 0.493 GB, free: 10.55 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3769/0.379, allocations: 65.47 MB / 0.5569 GB, free: 7.34 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestBooleanFunctions): time 0.001614/0.3806, allocations: 0.489 MB / 0.5574 GB, free: 6.973 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009822/0.3816, allocations: 369.5 kB / 0.5578 GB, free: 6.719 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.469e-05/0.3816, allocations: 0 / 0.5578 GB, free: 6.719 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.231e-05/0.3816, allocations: 0 / 0.5578 GB, free: 6.719 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.53e-06/0.3816, allocations: 0 / 0.5578 GB, free: 6.719 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.0008801/0.3825, allocations: 215.2 kB / 0.558 GB, free: 6.512 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.174e-05/0.3826, allocations: 8 kB / 0.558 GB, free: 6.504 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.683e-05/0.3826, allocations: 4 kB / 0.558 GB, free: 6.5 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.494e-05/0.3826, allocations: 3.984 kB / 0.558 GB, free: 6.496 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.038e-05/0.3826, allocations: 0 / 0.558 GB, free: 6.496 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.279e-06/0.3826, allocations: 0 / 0.558 GB, free: 6.496 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004064/0.383, allocations: 227.5 kB / 0.5582 GB, free: 6.273 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.285e-06/0.383, allocations: 0 / 0.5582 GB, free: 6.273 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.859e-05/0.3831, allocations: 0 / 0.5582 GB, free: 6.273 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002497/0.3833, allocations: 157.4 kB / 0.5584 GB, free: 6.121 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.3833, allocations: 0 / 0.5584 GB, free: 6.121 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3833, allocations: 0 / 0.5584 GB, free: 6.121 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.097e-06/0.3833, allocations: 0 / 0.5584 GB, free: 6.121 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.0003945/0.3837, allocations: 303.9 kB / 0.5587 GB, free: 5.785 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.217e-05/0.3838, allocations: 12.03 kB / 0.5587 GB, free: 5.773 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.485e-05/0.3838, allocations: 34.73 kB / 0.5587 GB, free: 5.73 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.364e-05/0.3838, allocations: 0.9375 kB / 0.5587 GB, free: 5.73 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.369e-05/0.3839, allocations: 102.5 kB / 0.5588 GB, free: 5.605 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.335e-05/0.3839, allocations: 384 / 0.5588 GB, free: 5.605 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.172e-05/0.384, allocations: 4.375 kB / 0.5588 GB, free: 5.602 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001227/0.3841, allocations: 55.95 kB / 0.5589 GB, free: 5.535 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.086e-05/0.3841, allocations: 3.938 kB / 0.5589 GB, free: 5.531 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.115e-06/0.3841, allocations: 4 kB / 0.5589 GB, free: 5.527 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.125e-06/0.3841, allocations: 4 kB / 0.5589 GB, free: 5.523 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.427e-05/0.3841, allocations: 29.64 kB / 0.5589 GB, free: 5.488 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001472/0.3843, allocations: 124.7 kB / 0.559 GB, free: 5.324 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.792e-05/0.3844, allocations: 44.27 kB / 0.5591 GB, free: 5.266 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.216e-05/0.3844, allocations: 34.66 kB / 0.5591 GB, free: 5.223 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.736e-06/0.3844, allocations: 0 / 0.5591 GB, free: 5.223 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.479e-05/0.3844, allocations: 56.27 kB / 0.5591 GB, free: 5.152 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 7.92e-07/0.3844, allocations: 0 / 0.5591 GB, free: 5.152 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002327/0.3847, allocations: 130.6 kB / 0.5593 GB, free: 5 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.493e-05/0.3847, allocations: 81.23 kB / 0.5593 GB, free: 4.902 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.087e-05/0.3848, allocations: 93.86 kB / 0.5594 GB, free: 4.801 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.665e-05/0.3848, allocations: 25.7 kB / 0.5595 GB, free: 4.77 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.109e-05/0.3849, allocations: 80.14 kB / 0.5595 GB, free: 4.688 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.677e-05/0.3849, allocations: 0 / 0.5595 GB, free: 4.688 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.099e-05/0.3849, allocations: 17.72 kB / 0.5596 GB, free: 4.664 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001749/0.3851, allocations: 310.8 kB / 0.5599 GB, free: 4.352 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.404e-05/0.3851, allocations: 25.7 kB / 0.5599 GB, free: 4.32 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.435e-05/0.3851, allocations: 33.69 kB / 0.5599 GB, free: 4.281 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.611e-05/0.3852, allocations: 60.27 kB / 0.56 GB, free: 4.207 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.3852, allocations: 4.062 kB / 0.56 GB, free: 4.203 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.000103/0.3853, allocations: 89.05 kB / 0.5601 GB, free: 4.098 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.52e-05/0.3853, allocations: 40.03 kB / 0.5601 GB, free: 4.055 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-06/0.3853, allocations: 3.938 kB / 0.5601 GB, free: 4.051 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.286e-05/0.3854, allocations: 0 / 0.5601 GB, free: 4.051 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.182e-06/0.3854, allocations: 0 / 0.5601 GB, free: 4.051 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.18e-06/0.3854, allocations: 0 / 0.5601 GB, free: 4.051 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.662e-05/0.3854, allocations: 0 / 0.5601 GB, free: 4.051 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.756e-06/0.3854, allocations: 4 kB / 0.5601 GB, free: 4.047 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 0.000111/0.3855, allocations: 131.5 kB / 0.5602 GB, free: 3.902 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.23e-05/0.3855, allocations: 8.031 kB / 0.5602 GB, free: 3.895 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.561e-05/0.3855, allocations: 6.938 kB / 0.5602 GB, free: 3.887 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.61e-07/0.3855, allocations: 0 / 0.5602 GB, free: 3.887 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.3855, allocations: 3.938 kB / 0.5602 GB, free: 3.883 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.97e-06/0.3855, allocations: 3.984 kB / 0.5602 GB, free: 3.879 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001001/0.3856, allocations: 116.8 kB / 0.5604 GB, free: 3.723 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.3856, allocations: 4 kB / 0.5604 GB, free: 3.719 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.3e-07/0.3856, allocations: 0 / 0.5604 GB, free: 3.719 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.022e-06/0.3856, allocations: 0 / 0.5604 GB, free: 3.719 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.628e-06/0.3857, allocations: 11.88 kB / 0.5604 GB, free: 3.707 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.32e-07/0.3857, allocations: 0 / 0.5604 GB, free: 3.707 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.3857, allocations: 4 kB / 0.5604 GB, free: 3.703 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001272/0.3858, allocations: 120.5 kB / 0.5605 GB, free: 3.555 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.008e-06/0.3858, allocations: 0 / 0.5605 GB, free: 3.555 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.322e-05/0.3858, allocations: 7.938 kB / 0.5605 GB, free: 3.547 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.456e-06/0.3858, allocations: 0 / 0.5605 GB, free: 3.547 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.653e-05/0.3858, allocations: 3.984 kB / 0.5605 GB, free: 3.543 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.324e-06/0.3858, allocations: 0 / 0.5605 GB, free: 3.543 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.698e-05/0.3859, allocations: 79.28 kB / 0.5606 GB, free: 3.465 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3859, allocations: 0 / 0.5606 GB, free: 3.465 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002937/0.3862, allocations: 51.88 kB / 0.5606 GB, free: 3.414 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.0007441/0.3869, allocations: 0.7507 MB / 0.5614 GB, free: 2.625 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001299/0.387, allocations: 114.8 kB / 0.5615 GB, free: 2.488 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.387, allocations: 0 / 0.5615 GB, free: 2.488 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 6.238e-05/0.3871, allocations: 85.09 kB / 0.5616 GB, free: 2.387 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001164/0.3872, allocations: 0 / 0.5616 GB, free: 2.387 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003576/0.3876, allocations: 156.4 kB / 0.5617 GB, free: 2.188 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.674e-05/0.3876, allocations: 59.36 kB / 0.5618 GB, free: 2.109 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.119e-06/0.3876, allocations: 0 / 0.5618 GB, free: 2.109 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.522e-05/0.3876, allocations: 7.438 kB / 0.5618 GB, free: 2.102 MB / 398.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3876, allocations: 3.938 kB / 0.5618 GB, free: 2.098 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02807/0.4157, allocations: 2.983 MB / 0.5647 GB, free: 15.25 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.95/11.36, allocations: 0 / 0.5647 GB, free: 15.25 MB / 414.1 MB " [Timeout remaining time 649] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.TestBooleanFunctions_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_TestBooleanFunctions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Math_TestBooleanFunctions.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.TestBooleanFunctions.pipe 2>&1) [Timeout 52.5] 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: 14.245474793948233]