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.001301/0.001301, allocations: 115.8 kB / 20.43 MB, free: 1.457 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.001525/0.001525, allocations: 214.1 kB / 23.75 MB, free: 4.668 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.446/1.446, allocations: 230.6 MB / 257.5 MB, free: 7.996 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.2264/0.2264, allocations: 44.9 MB / 358.8 MB, free: 6.305 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.002429/0.002429, allocations: 67.91 kB / 0.4931 GB, free: 10.75 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3628/0.3653, allocations: 65.47 MB / 0.557 GB, free: 7.543 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestBooleanFunctions): time 0.001522/0.3668, allocations: 0.4967 MB / 0.5575 GB, free: 7.164 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009361/0.3677, allocations: 377.3 kB / 0.5579 GB, free: 6.898 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.435e-05/0.3677, allocations: 5.375 kB / 0.5579 GB, free: 6.895 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.157e-05/0.3678, allocations: 0 / 0.5579 GB, free: 6.895 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.482e-06/0.3678, allocations: 0 / 0.5579 GB, free: 6.895 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.0008256/0.3686, allocations: 211 kB / 0.5581 GB, free: 6.73 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.079e-05/0.3686, allocations: 4 kB / 0.5581 GB, free: 6.727 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.417e-05/0.3687, allocations: 0 / 0.5581 GB, free: 6.727 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.739e-05/0.3687, allocations: 0 / 0.5581 GB, free: 6.727 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.006e-05/0.3687, allocations: 3.984 kB / 0.5581 GB, free: 6.723 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.903e-06/0.3687, allocations: 0 / 0.5581 GB, free: 6.723 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004594/0.3692, allocations: 247.5 kB / 0.5583 GB, free: 6.48 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.104e-06/0.3692, allocations: 7.938 kB / 0.5583 GB, free: 6.473 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.388e-05/0.3692, allocations: 4 kB / 0.5583 GB, free: 6.469 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000276/0.3695, allocations: 153.4 kB / 0.5585 GB, free: 6.32 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.3695, allocations: 0 / 0.5585 GB, free: 6.32 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.3695, allocations: 0 / 0.5585 GB, free: 6.32 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.951e-06/0.3695, allocations: 4 kB / 0.5585 GB, free: 6.316 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.0003776/0.3699, allocations: 291.9 kB / 0.5587 GB, free: 5.992 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.826e-05/0.3699, allocations: 12.03 kB / 0.5588 GB, free: 5.98 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.492e-05/0.3699, allocations: 30.75 kB / 0.5588 GB, free: 5.941 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.715e-05/0.37, allocations: 0.9375 kB / 0.5588 GB, free: 5.941 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.885e-05/0.3701, allocations: 106.5 kB / 0.5589 GB, free: 5.812 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.015e-05/0.3701, allocations: 384 / 0.5589 GB, free: 5.812 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.116e-05/0.3701, allocations: 8.359 kB / 0.5589 GB, free: 5.805 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.232e-05/0.3702, allocations: 30.27 kB / 0.5589 GB, free: 5.77 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.477e-06/0.3702, allocations: 3.938 kB / 0.5589 GB, free: 5.766 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.595e-06/0.3702, allocations: 0 / 0.5589 GB, free: 5.766 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.603e-06/0.3702, allocations: 7.938 kB / 0.5589 GB, free: 5.758 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.767e-05/0.3702, allocations: 0 / 0.5589 GB, free: 5.758 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001395/0.3703, allocations: 112.8 kB / 0.559 GB, free: 5.605 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.793e-05/0.3704, allocations: 26.59 kB / 0.5591 GB, free: 5.57 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.595e-05/0.3704, allocations: 8.859 kB / 0.5591 GB, free: 5.559 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.045e-06/0.3704, allocations: 0 / 0.5591 GB, free: 5.559 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.471e-05/0.3705, allocations: 56.27 kB / 0.5591 GB, free: 5.488 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.02e-07/0.3705, allocations: 64 / 0.5591 GB, free: 5.488 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002042/0.3707, allocations: 71.23 kB / 0.5592 GB, free: 5.406 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.047e-05/0.3707, allocations: 89.22 kB / 0.5593 GB, free: 5.301 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.964e-05/0.3708, allocations: 89.86 kB / 0.5594 GB, free: 5.203 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.802e-05/0.3708, allocations: 29.64 kB / 0.5594 GB, free: 5.168 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.05e-05/0.3709, allocations: 84.14 kB / 0.5595 GB, free: 5.082 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.036e-05/0.3709, allocations: 0 / 0.5595 GB, free: 5.082 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.101e-05/0.3709, allocations: 13.72 kB / 0.5595 GB, free: 5.062 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001457/0.3711, allocations: 310.8 kB / 0.5598 GB, free: 4.75 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.068e-05/0.3711, allocations: 0 / 0.5598 GB, free: 4.75 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.734e-06/0.3711, allocations: 4 kB / 0.5598 GB, free: 4.746 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.562e-05/0.3711, allocations: 64.2 kB / 0.5599 GB, free: 4.668 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.3711, allocations: 0 / 0.5599 GB, free: 4.668 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.993e-05/0.3712, allocations: 67.39 kB / 0.5599 GB, free: 4.59 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.732e-05/0.3713, allocations: 29.7 kB / 0.5599 GB, free: 4.555 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.3713, allocations: 3.938 kB / 0.5599 GB, free: 4.551 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.673e-05/0.3713, allocations: 4 kB / 0.56 GB, free: 4.547 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.31e-06/0.3713, allocations: 7.984 kB / 0.56 GB, free: 4.539 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5e-06/0.3713, allocations: 0 / 0.56 GB, free: 4.539 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.711e-05/0.3713, allocations: 8.031 kB / 0.56 GB, free: 4.531 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.552e-06/0.3713, allocations: 0 / 0.56 GB, free: 4.531 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.0001297/0.3715, allocations: 139.5 kB / 0.5601 GB, free: 4.379 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.955e-06/0.3715, allocations: 0 / 0.5601 GB, free: 4.379 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.223e-05/0.3715, allocations: 6.938 kB / 0.5601 GB, free: 4.371 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.001e-06/0.3715, allocations: 0 / 0.5601 GB, free: 4.371 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.477e-06/0.3715, allocations: 0 / 0.5601 GB, free: 4.371 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-06/0.3715, allocations: 0 / 0.5601 GB, free: 4.371 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001073/0.3716, allocations: 128.7 kB / 0.5602 GB, free: 4.203 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.41e-07/0.3716, allocations: 0 / 0.5602 GB, free: 4.203 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.3716, allocations: 4 kB / 0.5602 GB, free: 4.199 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.072e-06/0.3716, allocations: 0 / 0.5602 GB, free: 4.199 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.524e-06/0.3716, allocations: 3.938 kB / 0.5602 GB, free: 4.195 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.3716, allocations: 4 kB / 0.5602 GB, free: 4.191 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.3716, allocations: 3.938 kB / 0.5602 GB, free: 4.188 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001014/0.3717, allocations: 86.83 kB / 0.5603 GB, free: 4.078 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.222e-06/0.3717, allocations: 4 kB / 0.5603 GB, free: 4.074 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.343e-05/0.3717, allocations: 7.969 kB / 0.5603 GB, free: 4.066 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.376e-06/0.3717, allocations: 0 / 0.5603 GB, free: 4.066 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.438e-06/0.3717, allocations: 0 / 0.5603 GB, free: 4.066 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.194e-06/0.3717, allocations: 0 / 0.5603 GB, free: 4.066 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.209e-05/0.3718, allocations: 83.22 kB / 0.5604 GB, free: 3.984 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3718, allocations: 0 / 0.5604 GB, free: 3.984 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000281/0.3721, allocations: 55.86 kB / 0.5605 GB, free: 3.93 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.0007315/0.3728, allocations: 0.7123 MB / 0.5612 GB, free: 3.188 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.98e-05/0.3729, allocations: 63.39 kB / 0.5612 GB, free: 3.113 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.3729, allocations: 0 / 0.5612 GB, free: 3.113 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.787e-05/0.373, allocations: 55.41 kB / 0.5613 GB, free: 3.047 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001248/0.3731, allocations: 4.094 kB / 0.5613 GB, free: 3.043 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003092/0.3734, allocations: 126.6 kB / 0.5614 GB, free: 2.879 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003319/0.3737, allocations: 0.669 MB / 0.5621 GB, free: 2.184 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.12e-06/0.3737, allocations: 0 / 0.5621 GB, free: 2.184 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.572e-05/0.3737, allocations: 15.38 kB / 0.5621 GB, free: 2.168 MB / 398.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3737, allocations: 0 / 0.5621 GB, free: 2.168 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0281/0.4018, allocations: 2.566 MB / 0.5646 GB, free: 15.73 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.27/11.67, allocations: 10.5 kB / 0.5646 GB, free: 15.72 MB / 414.1 MB " [Timeout remaining time 648] (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.483001030050218]