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.001661/0.001661, allocations: 121 kB / 18.5 MB, free: 4.562 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.002012/0.002012, allocations: 213.5 kB / 21.45 MB, free: 1.617 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.528/1.528, allocations: 230.6 MB / 254.8 MB, free: 15.09 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.2167/0.2167, allocations: 44.91 MB / 355.8 MB, free: 12.33 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.002133/0.002133, allocations: 67.89 kB / 0.4885 GB, free: 11.71 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1336/0.1358, allocations: 65.42 MB / 0.5524 GB, free: 10.17 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestBooleanFunctions): time 0.001658/0.1374, allocations: 0.4892 MB / 0.5529 GB, free: 9.676 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008846/0.1383, allocations: 375.3 kB / 0.5532 GB, free: 9.309 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.447e-05/0.1383, allocations: 0 / 0.5532 GB, free: 9.309 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.216e-05/0.1383, allocations: 0 / 0.5532 GB, free: 9.309 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 5.601e-06/0.1383, allocations: 3.938 kB / 0.5533 GB, free: 9.305 MB / 414.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.0007895/0.1391, allocations: 195.5 kB / 0.5534 GB, free: 9.113 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.391e-05/0.1392, allocations: 15.94 kB / 0.5535 GB, free: 9.098 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.48e-05/0.1392, allocations: 0 / 0.5535 GB, free: 9.098 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.159e-05/0.1392, allocations: 0 / 0.5535 GB, free: 9.098 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.309e-05/0.1392, allocations: 7.922 kB / 0.5535 GB, free: 9.09 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.332e-06/0.1393, allocations: 0 / 0.5535 GB, free: 9.09 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003795/0.1396, allocations: 211.6 kB / 0.5537 GB, free: 8.883 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.125e-06/0.1396, allocations: 4 kB / 0.5537 GB, free: 8.879 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.189e-05/0.1397, allocations: 7.984 kB / 0.5537 GB, free: 8.871 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002432/0.1399, allocations: 144 kB / 0.5538 GB, free: 8.73 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.1399, allocations: 0 / 0.5538 GB, free: 8.73 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1399, allocations: 3.938 kB / 0.5538 GB, free: 8.727 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.199e-06/0.1399, allocations: 8 kB / 0.5538 GB, free: 8.719 MB / 414.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.0004324/0.1404, allocations: 361 kB / 0.5542 GB, free: 8.309 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.341e-05/0.1404, allocations: 12.03 kB / 0.5542 GB, free: 8.297 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.605e-05/0.1404, allocations: 192 / 0.5542 GB, free: 8.297 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.261e-05/0.1404, allocations: 42.67 kB / 0.5542 GB, free: 8.246 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.216e-05/0.1405, allocations: 0.9375 kB / 0.5542 GB, free: 8.246 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001279/0.1406, allocations: 160.4 kB / 0.5544 GB, free: 8.051 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.03e-05/0.1406, allocations: 384 / 0.5544 GB, free: 8.051 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.142e-06/0.1406, allocations: 4.375 kB / 0.5544 GB, free: 8.047 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.23e-05/0.1407, allocations: 34.02 kB / 0.5544 GB, free: 8.008 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.125e-06/0.1407, allocations: 0 / 0.5544 GB, free: 8.008 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.014e-06/0.1407, allocations: 0 / 0.5544 GB, free: 8.008 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.378e-06/0.1407, allocations: 0 / 0.5544 GB, free: 8.008 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.809e-05/0.1407, allocations: 4 kB / 0.5544 GB, free: 8.004 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001626/0.1409, allocations: 151.4 kB / 0.5546 GB, free: 7.809 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.738e-05/0.1409, allocations: 26.52 kB / 0.5546 GB, free: 7.773 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.375e-05/0.141, allocations: 12.95 kB / 0.5546 GB, free: 7.758 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.586e-06/0.141, allocations: 0 / 0.5546 GB, free: 7.758 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.115e-05/0.141, allocations: 60.2 kB / 0.5547 GB, free: 7.684 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 8.22e-07/0.141, allocations: 0 / 0.5547 GB, free: 7.684 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001789/0.1412, allocations: 67.34 kB / 0.5547 GB, free: 7.605 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.313e-05/0.1412, allocations: 81.05 kB / 0.5548 GB, free: 7.508 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.985e-05/0.1413, allocations: 93.86 kB / 0.5549 GB, free: 7.406 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.768e-05/0.1413, allocations: 29.83 kB / 0.5549 GB, free: 7.371 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.265e-05/0.1414, allocations: 84.14 kB / 0.555 GB, free: 7.285 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.706e-05/0.1414, allocations: 3.938 kB / 0.555 GB, free: 7.281 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.752e-05/0.1414, allocations: 9.719 kB / 0.555 GB, free: 7.266 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001519/0.1416, allocations: 314.8 kB / 0.5553 GB, free: 6.949 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.253e-05/0.1416, allocations: 3.984 kB / 0.5553 GB, free: 6.945 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.919e-06/0.1416, allocations: 0 / 0.5553 GB, free: 6.945 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.399e-05/0.1416, allocations: 64.27 kB / 0.5554 GB, free: 6.867 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.1416, allocations: 4.062 kB / 0.5554 GB, free: 6.863 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.462e-05/0.1417, allocations: 63.34 kB / 0.5554 GB, free: 6.789 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.71e-05/0.1418, allocations: 39.81 kB / 0.5555 GB, free: 6.746 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/0.1418, allocations: 3.938 kB / 0.5555 GB, free: 6.742 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.927e-05/0.1418, allocations: 0 / 0.5555 GB, free: 6.742 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.52e-07/0.1418, allocations: 0 / 0.5555 GB, free: 6.742 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.23e-06/0.1418, allocations: 0 / 0.5555 GB, free: 6.742 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.643e-05/0.1418, allocations: 4 kB / 0.5555 GB, free: 6.738 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.222e-06/0.1418, allocations: 0 / 0.5555 GB, free: 6.738 MB / 414.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.0001029/0.1419, allocations: 137.8 kB / 0.5556 GB, free: 6.59 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.27e-05/0.1419, allocations: 7.938 kB / 0.5556 GB, free: 6.582 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.725e-06/0.1419, allocations: 3.125 kB / 0.5556 GB, free: 6.582 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.62e-07/0.1419, allocations: 0 / 0.5556 GB, free: 6.582 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.437e-06/0.1419, allocations: 0 / 0.5556 GB, free: 6.582 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.1419, allocations: 3.984 kB / 0.5556 GB, free: 6.578 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001161/0.1421, allocations: 149.6 kB / 0.5558 GB, free: 6.383 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.02e-07/0.1421, allocations: 4 kB / 0.5558 GB, free: 6.379 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.11e-07/0.1421, allocations: 0 / 0.5558 GB, free: 6.379 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.046e-06/0.1421, allocations: 3.938 kB / 0.5558 GB, free: 6.375 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.57e-06/0.1421, allocations: 4 kB / 0.5558 GB, free: 6.371 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.61e-07/0.1421, allocations: 0 / 0.5558 GB, free: 6.371 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.1421, allocations: 0 / 0.5558 GB, free: 6.371 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001086/0.1422, allocations: 94.77 kB / 0.5559 GB, free: 6.254 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.875e-05/0.1422, allocations: 77.11 kB / 0.5559 GB, free: 6.16 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.254e-05/0.1422, allocations: 3.938 kB / 0.5559 GB, free: 6.156 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.08e-05/0.1422, allocations: 4 kB / 0.556 GB, free: 6.152 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.375e-05/0.1423, allocations: 8.016 kB / 0.556 GB, free: 6.145 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.469e-06/0.1423, allocations: 4 kB / 0.556 GB, free: 6.141 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.358e-05/0.1423, allocations: 75.28 kB / 0.556 GB, free: 6.066 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1423, allocations: 0 / 0.556 GB, free: 6.066 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002778/0.1426, allocations: 51.88 kB / 0.5561 GB, free: 6.016 MB / 414.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.0007404/0.1433, allocations: 0.7151 MB / 0.5568 GB, free: 5.27 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001193/0.1434, allocations: 71.28 kB / 0.5569 GB, free: 5.188 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.1434, allocations: 0 / 0.5569 GB, free: 5.188 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.719e-05/0.1435, allocations: 55.39 kB / 0.5569 GB, free: 5.121 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001239/0.1436, allocations: 4 kB / 0.5569 GB, free: 5.117 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003354/0.1439, allocations: 134.7 kB / 0.557 GB, free: 4.945 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003249/0.1443, allocations: 0.6807 MB / 0.5577 GB, free: 4.238 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.31e-06/0.1443, allocations: 0 / 0.5577 GB, free: 4.238 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.464e-05/0.1443, allocations: 7.438 kB / 0.5577 GB, free: 4.23 MB / 414.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1443, allocations: 0 / 0.5577 GB, free: 4.23 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01782/0.1621, allocations: 2.475 MB / 0.5601 GB, free: 1.848 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.133/8.295, allocations: 11.88 kB / 0.5601 GB, free: 1.84 MB / 414.1 MB " [Timeout remaining time 652] (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: 11.251630322018173]