Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestBooleanFunctions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.TestBooleanFunctions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestBooleanFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestBooleanFunctions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestBooleanFunctions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001059/0.001059, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001184/0.001184, allocations: 212.6 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.456/1.456, allocations: 227.4 MB / 246.8 MB, free: 10.56 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2175/0.2175, allocations: 46.1 MB / 344.1 MB, free: 11.57 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001714/0.001714, allocations: 80.67 kB / 417.7 MB, free: 19.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1159/0.1176, allocations: 62.45 MB / 480.1 MB, free: 5.164 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestBooleanFunctions): time 0.001991/0.1197, allocations: 487.8 kB / 480.6 MB, free: 4.684 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009594/0.1207, allocations: 365.6 kB / 481 MB, free: 4.328 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.765e-05/0.1207, allocations: 4 kB / 481 MB, free: 4.324 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.383e-05/0.1207, allocations: 0 / 481 MB, free: 4.324 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.819e-06/0.1208, allocations: 7.938 kB / 481 MB, free: 4.316 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.0008591/0.1216, allocations: 199.6 kB / 481.2 MB, free: 4.121 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.623e-05/0.1217, allocations: 0 / 481.2 MB, free: 4.121 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.089e-05/0.1217, allocations: 3.938 kB / 481.2 MB, free: 4.117 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.605e-05/0.1217, allocations: 11.92 kB / 481.2 MB, free: 4.105 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.733e-05/0.1218, allocations: 0 / 481.2 MB, free: 4.105 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.491e-06/0.1218, allocations: 0 / 481.2 MB, free: 4.105 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000287/0.1221, allocations: 159.7 kB / 481.3 MB, free: 3.949 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.422e-06/0.1221, allocations: 0 / 481.3 MB, free: 3.949 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.921e-05/0.1221, allocations: 3.984 kB / 481.3 MB, free: 3.945 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003558/0.1225, allocations: 151.7 kB / 481.5 MB, free: 3.797 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.1225, allocations: 4 kB / 481.5 MB, free: 3.793 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.1225, allocations: 0 / 481.5 MB, free: 3.793 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.711e-06/0.1225, allocations: 0 / 481.5 MB, free: 3.793 MB / 350.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.0004055/0.1229, allocations: 369.2 kB / 481.9 MB, free: 3.375 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.348e-05/0.123, allocations: 8.031 kB / 481.9 MB, free: 3.367 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.702e-05/0.123, allocations: 30.75 kB / 481.9 MB, free: 3.328 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.712e-05/0.123, allocations: 0.9375 kB / 481.9 MB, free: 3.328 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001006/0.1231, allocations: 160.4 kB / 482.1 MB, free: 3.133 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.463e-05/0.1232, allocations: 4.375 kB / 482.1 MB, free: 3.129 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.264e-06/0.1232, allocations: 4.375 kB / 482.1 MB, free: 3.125 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.517e-05/0.1233, allocations: 30.2 kB / 482.1 MB, free: 3.09 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.782e-05/0.1233, allocations: 7.922 kB / 482.1 MB, free: 3.082 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.021e-05/0.1233, allocations: 4 kB / 482.1 MB, free: 3.078 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.869e-06/0.1233, allocations: 0 / 482.1 MB, free: 3.078 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.097e-05/0.1234, allocations: 4 kB / 482.1 MB, free: 3.074 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001538/0.1235, allocations: 141.7 kB / 482.2 MB, free: 2.887 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.234e-05/0.1236, allocations: 18.61 kB / 482.3 MB, free: 2.859 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.691e-05/0.1236, allocations: 8.859 kB / 482.3 MB, free: 2.848 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.105e-06/0.1236, allocations: 0 / 482.3 MB, free: 2.848 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.532e-05/0.1237, allocations: 68.25 kB / 482.3 MB, free: 2.766 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.42e-07/0.1237, allocations: 0 / 482.3 MB, free: 2.766 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001859/0.1239, allocations: 67.34 kB / 482.4 MB, free: 2.688 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.258e-05/0.1239, allocations: 77.11 kB / 482.5 MB, free: 2.594 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.348e-05/0.124, allocations: 89.86 kB / 482.6 MB, free: 2.496 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.002e-05/0.124, allocations: 29.83 kB / 482.6 MB, free: 2.461 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.987e-05/0.124, allocations: 80.14 kB / 482.7 MB, free: 2.379 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.384e-05/0.1241, allocations: 0 / 482.7 MB, free: 2.379 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.579e-05/0.1241, allocations: 21.7 kB / 482.7 MB, free: 2.352 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001237/0.1242, allocations: 310.8 kB / 483 MB, free: 2.039 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.01e-05/0.1243, allocations: 3.938 kB / 483 MB, free: 2.035 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.372e-06/0.1243, allocations: 0 / 483 MB, free: 2.035 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.896e-05/0.1243, allocations: 64.27 kB / 483.1 MB, free: 1.957 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.1243, allocations: 4 kB / 483.1 MB, free: 1.953 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.643e-05/0.1244, allocations: 71.33 kB / 483.1 MB, free: 1.871 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.954e-05/0.1245, allocations: 29.7 kB / 483.2 MB, free: 1.836 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.578e-06/0.1245, allocations: 11.94 kB / 483.2 MB, free: 1.824 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.142e-05/0.1245, allocations: 0 / 483.2 MB, free: 1.824 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.72e-07/0.1245, allocations: 0 / 483.2 MB, free: 1.824 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.348e-06/0.1245, allocations: 0 / 483.2 MB, free: 1.824 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.482e-05/0.1245, allocations: 0 / 483.2 MB, free: 1.824 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.073e-06/0.1245, allocations: 0 / 483.2 MB, free: 1.824 MB / 350.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.029e-05/0.1246, allocations: 139.6 kB / 483.3 MB, free: 1.672 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.637e-06/0.1246, allocations: 0 / 483.3 MB, free: 1.672 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.123e-05/0.1247, allocations: 11.05 kB / 483.3 MB, free: 1.664 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.322e-06/0.1247, allocations: 0 / 483.3 MB, free: 1.664 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.077e-06/0.1247, allocations: 0 / 483.3 MB, free: 1.664 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.374e-06/0.1247, allocations: 0 / 483.3 MB, free: 1.664 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.439e-05/0.1248, allocations: 145.7 kB / 483.5 MB, free: 1.473 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.1248, allocations: 0 / 483.5 MB, free: 1.473 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.21e-07/0.1248, allocations: 3.938 kB / 483.5 MB, free: 1.469 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.804e-06/0.1248, allocations: 0 / 483.5 MB, free: 1.469 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.055e-05/0.1248, allocations: 7.938 kB / 483.5 MB, free: 1.461 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.818e-06/0.1248, allocations: 7.984 kB / 483.5 MB, free: 1.453 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.1248, allocations: 0 / 483.5 MB, free: 1.453 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.129e-05/0.1249, allocations: 82.84 kB / 483.6 MB, free: 1.348 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.417e-05/0.125, allocations: 92.98 kB / 483.7 MB, free: 1.238 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.336e-05/0.125, allocations: 7.938 kB / 483.7 MB, free: 1.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.939e-06/0.125, allocations: 0 / 483.7 MB, free: 1.23 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.314e-05/0.125, allocations: 4.031 kB / 483.7 MB, free: 1.227 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.925e-06/0.125, allocations: 0 / 483.7 MB, free: 1.227 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.633e-05/0.1251, allocations: 75.28 kB / 483.7 MB, free: 1.152 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1251, allocations: 0 / 483.7 MB, free: 1.152 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003169/0.1254, allocations: 52 kB / 483.8 MB, free: 1.102 MB / 350.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.0006885/0.1261, allocations: 0.7343 MB / 484.5 MB, free: 348 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.634e-05/0.1262, allocations: 55.41 kB / 484.6 MB, free: 280 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.1262, allocations: 0 / 484.6 MB, free: 280 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.587e-05/0.1263, allocations: 63.39 kB / 484.6 MB, free: 204 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001183/0.1264, allocations: 0 / 484.6 MB, free: 204 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003345/0.1267, allocations: 126.6 kB / 484.8 MB, free: 36 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002774/0.127, allocations: 0.6768 MB / 485.4 MB, free: 15.33 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.897e-06/0.127, allocations: 4 kB / 485.4 MB, free: 15.33 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.581e-05/0.1271, allocations: 7.438 kB / 485.5 MB, free: 15.32 MB / 366.1 MB Notification: Performance of SimCode: time 6.51e-07/0.1271, allocations: 0 / 485.5 MB, free: 15.32 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02135/0.1484, allocations: 2.426 MB / 487.9 MB, free: 12.95 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.752/7.9, allocations: 10.44 kB / 487.9 MB, free: 12.94 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestBooleanFunctions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestBooleanFunctions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestBooleanFunctions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestBooleanFunctions.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Math.TestBooleanFunctions_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_trunk_ModelicaTest_Math_TestBooleanFunctions.fmu > ModelicaTest_trunk_ModelicaTest.Math.TestBooleanFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.TestBooleanFunctions_res.csv","/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_trunk_ModelicaTest.Math.TestBooleanFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches