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.001241/0.001241, allocations: 105.1 kB / 21.21 MB, free: 0.6523 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.001377/0.001377, allocations: 212.6 kB / 24.51 MB, free: 3.941 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.412/1.412, allocations: 230.6 MB / 258.3 MB, free: 7.758 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.2137/0.2137, allocations: 44.93 MB / 359.6 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestBooleanFunctions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestBooleanFunctions",fmuType="cs",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.00205/0.00205, allocations: 55.91 kB / 0.4938 GB, free: 10.58 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2915/0.2935, allocations: 65.48 MB / 0.5577 GB, free: 7.352 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestBooleanFunctions): time 0.001723/0.2952, allocations: 493.8 kB / 0.5582 GB, free: 6.988 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009127/0.2961, allocations: 368.9 kB / 0.5585 GB, free: 6.711 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.734e-05/0.2962, allocations: 0 / 0.5585 GB, free: 6.711 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.592e-05/0.2962, allocations: 3.938 kB / 0.5585 GB, free: 6.707 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.143e-06/0.2962, allocations: 0 / 0.5585 GB, free: 6.707 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.0009165/0.2971, allocations: 219.5 kB / 0.5588 GB, free: 6.492 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.33e-05/0.2972, allocations: 4 kB / 0.5588 GB, free: 6.488 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.498e-05/0.2972, allocations: 0 / 0.5588 GB, free: 6.488 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.516e-05/0.2972, allocations: 4 kB / 0.5588 GB, free: 6.484 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.884e-05/0.2972, allocations: 0 / 0.5588 GB, free: 6.484 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.022e-06/0.2972, allocations: 0 / 0.5588 GB, free: 6.484 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004131/0.2976, allocations: 227.6 kB / 0.559 GB, free: 6.262 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.295e-06/0.2977, allocations: 3.938 kB / 0.559 GB, free: 6.258 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.535e-05/0.2977, allocations: 0 / 0.559 GB, free: 6.258 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000263/0.2979, allocations: 153.5 kB / 0.5591 GB, free: 6.109 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.2979, allocations: 0 / 0.5591 GB, free: 6.109 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.2979, allocations: 0 / 0.5591 GB, free: 6.109 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.869e-06/0.298, allocations: 0 / 0.5591 GB, free: 6.109 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.0003975/0.2984, allocations: 299.9 kB / 0.5594 GB, free: 5.777 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.213e-05/0.2984, allocations: 20.02 kB / 0.5594 GB, free: 5.758 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.216e-05/0.2984, allocations: 192 / 0.5594 GB, free: 5.758 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.508e-05/0.2984, allocations: 30.75 kB / 0.5595 GB, free: 5.719 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.45e-05/0.2985, allocations: 0.9375 kB / 0.5595 GB, free: 5.719 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.375e-05/0.2985, allocations: 102.5 kB / 0.5596 GB, free: 5.594 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.22e-05/0.2986, allocations: 4.375 kB / 0.5596 GB, free: 5.59 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.485e-06/0.2986, allocations: 4.375 kB / 0.5596 GB, free: 5.586 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001023/0.2987, allocations: 59.66 kB / 0.5596 GB, free: 5.516 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.125e-06/0.2987, allocations: 4 kB / 0.5596 GB, free: 5.512 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.097e-05/0.2987, allocations: 3.984 kB / 0.5596 GB, free: 5.508 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.077e-06/0.2987, allocations: 0 / 0.5596 GB, free: 5.508 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.258e-05/0.2987, allocations: 33.69 kB / 0.5597 GB, free: 5.469 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001481/0.2989, allocations: 116.8 kB / 0.5598 GB, free: 5.312 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.496e-05/0.2989, allocations: 44.28 kB / 0.5598 GB, free: 5.254 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.106e-05/0.299, allocations: 34.66 kB / 0.5599 GB, free: 5.211 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.556e-06/0.299, allocations: 0 / 0.5599 GB, free: 5.211 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.406e-05/0.299, allocations: 64.14 kB / 0.5599 GB, free: 5.133 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.12e-07/0.299, allocations: 0 / 0.5599 GB, free: 5.133 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.000219/0.2993, allocations: 122.8 kB / 0.56 GB, free: 4.988 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.107e-05/0.2993, allocations: 81.11 kB / 0.5601 GB, free: 4.891 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.64e-05/0.2994, allocations: 93.98 kB / 0.5602 GB, free: 4.789 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.654e-05/0.2994, allocations: 25.7 kB / 0.5602 GB, free: 4.758 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.469e-05/0.2994, allocations: 80.14 kB / 0.5603 GB, free: 4.676 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.946e-05/0.2994, allocations: 3.984 kB / 0.5603 GB, free: 4.672 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.028e-05/0.2995, allocations: 13.72 kB / 0.5603 GB, free: 4.652 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001347/0.2996, allocations: 314.8 kB / 0.5606 GB, free: 4.336 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.643e-05/0.2996, allocations: 29.7 kB / 0.5606 GB, free: 4.301 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.029e-05/0.2996, allocations: 29.7 kB / 0.5607 GB, free: 4.266 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.266e-05/0.2997, allocations: 64.2 kB / 0.5607 GB, free: 4.188 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.2997, allocations: 0 / 0.5607 GB, free: 4.188 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.4e-05/0.2998, allocations: 93.16 kB / 0.5608 GB, free: 4.078 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.517e-05/0.2998, allocations: 37.64 kB / 0.5609 GB, free: 4.035 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.657e-06/0.2998, allocations: 0 / 0.5609 GB, free: 4.035 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.463e-05/0.2998, allocations: 0 / 0.5609 GB, free: 4.035 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.02e-07/0.2998, allocations: 0 / 0.5609 GB, free: 4.035 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.001e-06/0.2999, allocations: 3.938 kB / 0.5609 GB, free: 4.031 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.115e-05/0.2999, allocations: 4 kB / 0.5609 GB, free: 4.027 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.153e-06/0.2999, allocations: 0 / 0.5609 GB, free: 4.027 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.0001283/0.3, allocations: 139.5 kB / 0.561 GB, free: 3.875 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.329e-05/0.3, allocations: 7.938 kB / 0.561 GB, free: 3.867 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.164e-05/0.3, allocations: 7.031 kB / 0.561 GB, free: 3.859 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.51e-07/0.3, allocations: 0 / 0.561 GB, free: 3.859 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.536e-06/0.3, allocations: 0 / 0.561 GB, free: 3.859 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.354e-06/0.3, allocations: 3.938 kB / 0.561 GB, free: 3.855 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001015/0.3001, allocations: 120.8 kB / 0.5611 GB, free: 3.695 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.82e-07/0.3001, allocations: 0 / 0.5611 GB, free: 3.695 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.286e-05/0.3002, allocations: 4 kB / 0.5611 GB, free: 3.691 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.558e-06/0.3002, allocations: 3.938 kB / 0.5611 GB, free: 3.688 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.614e-06/0.3002, allocations: 0 / 0.5611 GB, free: 3.688 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.41e-07/0.3002, allocations: 0 / 0.5611 GB, free: 3.688 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.3002, allocations: 0 / 0.5611 GB, free: 3.688 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001409/0.3003, allocations: 124.5 kB / 0.5613 GB, free: 3.535 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.412e-06/0.3003, allocations: 4 kB / 0.5613 GB, free: 3.531 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.437e-05/0.3003, allocations: 3.938 kB / 0.5613 GB, free: 3.527 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.356e-06/0.3003, allocations: 0 / 0.5613 GB, free: 3.527 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.534e-05/0.3004, allocations: 0 / 0.5613 GB, free: 3.527 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.839e-06/0.3004, allocations: 4 kB / 0.5613 GB, free: 3.523 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.375e-05/0.3004, allocations: 75.28 kB / 0.5613 GB, free: 3.449 MB / 398.1 MB Notification: Performance of sort global known variables: time 5e-08/0.3004, allocations: 0 / 0.5613 GB, free: 3.449 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002879/0.3007, allocations: 55.86 kB / 0.5614 GB, free: 3.395 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.0008216/0.3015, allocations: 0.743 MB / 0.5621 GB, free: 2.617 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001484/0.3017, allocations: 118.8 kB / 0.5622 GB, free: 2.477 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.3017, allocations: 0 / 0.5622 GB, free: 2.477 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 6.331e-05/0.3017, allocations: 81.11 kB / 0.5623 GB, free: 2.379 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000133/0.3019, allocations: 7.875 kB / 0.5623 GB, free: 2.371 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003711/0.3022, allocations: 160.3 kB / 0.5625 GB, free: 2.168 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.586e-05/0.3023, allocations: 63.48 kB / 0.5625 GB, free: 2.086 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.29e-06/0.3023, allocations: 0 / 0.5625 GB, free: 2.086 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.712e-05/0.3023, allocations: 11.44 kB / 0.5625 GB, free: 2.074 MB / 398.1 MB Notification: Performance of SimCode: time 5e-07/0.3023, allocations: 0 / 0.5625 GB, free: 2.074 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02229/0.3246, allocations: 2.626 MB / 0.5651 GB, free: 15.59 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.06/11.39, allocations: 12 kB / 0.5651 GB, free: 15.58 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.256088991998695]