Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_4_1_0-beta_om_ModelicaTest_Math_TestBooleanFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestBooleanFunctions,fileNamePrefix="ModelicaTest_4_1_0-beta_om_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.001294/0.001294, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001346/0.001346, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.413/1.413, allocations: 227.4 MB / 246.8 MB, free: 10.6 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2212/0.2212, allocations: 46.12 MB / 344.2 MB, free: 11.58 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002371/0.002371, allocations: 78.98 kB / 417.8 MB, free: 19.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1187/0.121, allocations: 62.45 MB / 480.2 MB, free: 5.156 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestBooleanFunctions): time 0.001879/0.123, allocations: 494.2 kB / 480.7 MB, free: 4.672 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008865/0.1239, allocations: 361.6 kB / 481 MB, free: 4.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.783e-05/0.1239, allocations: 4 kB / 481 MB, free: 4.316 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.889e-06/0.124, allocations: 0 / 481 MB, free: 4.316 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.248e-06/0.124, allocations: 0 / 481 MB, free: 4.316 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.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.0008326/0.1248, allocations: 207.1 kB / 481.2 MB, free: 4.117 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.844e-05/0.1249, allocations: 11.92 kB / 481.3 MB, free: 4.105 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.8e-05/0.1249, allocations: 0 / 481.3 MB, free: 4.105 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.141e-05/0.1249, allocations: 0 / 481.3 MB, free: 4.105 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.959e-05/0.1249, allocations: 4 kB / 481.3 MB, free: 4.102 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.28e-06/0.125, allocations: 0 / 481.3 MB, free: 4.102 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003193/0.1253, allocations: 159.7 kB / 481.4 MB, free: 3.945 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.041e-06/0.1253, allocations: 4 kB / 481.4 MB, free: 3.941 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.623e-05/0.1253, allocations: 0 / 481.4 MB, free: 3.941 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002576/0.1256, allocations: 151.7 kB / 481.6 MB, free: 3.793 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.815e-06/0.1256, allocations: 0 / 481.6 MB, free: 3.793 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.1256, allocations: 0 / 481.6 MB, free: 3.793 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.998e-06/0.1256, allocations: 0 / 481.6 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.0004525/0.1261, allocations: 373.2 kB / 481.9 MB, free: 3.371 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.942e-05/0.1261, allocations: 12.03 kB / 481.9 MB, free: 3.359 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.789e-05/0.1262, allocations: 30.75 kB / 482 MB, free: 3.32 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.74e-05/0.1262, allocations: 0.9375 kB / 482 MB, free: 3.32 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001271/0.1263, allocations: 168.3 kB / 482.1 MB, free: 3.117 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.261e-05/0.1264, allocations: 384 / 482.1 MB, free: 3.117 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.371e-05/0.1264, allocations: 4.375 kB / 482.1 MB, free: 3.113 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.188e-05/0.1265, allocations: 26.27 kB / 482.2 MB, free: 3.082 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.073e-05/0.1265, allocations: 3.938 kB / 482.2 MB, free: 3.078 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.157e-06/0.1265, allocations: 0 / 482.2 MB, free: 3.078 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.3e-06/0.1265, allocations: 0 / 482.2 MB, free: 3.078 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.73e-05/0.1265, allocations: 11.98 kB / 482.2 MB, free: 3.066 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001695/0.1267, allocations: 141.7 kB / 482.3 MB, free: 2.879 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.142e-05/0.1268, allocations: 26.55 kB / 482.3 MB, free: 2.844 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.038e-05/0.1268, allocations: 8.797 kB / 482.4 MB, free: 2.832 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.687e-06/0.1268, allocations: 0 / 482.4 MB, free: 2.832 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.929e-05/0.1269, allocations: 60.25 kB / 482.4 MB, free: 2.758 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.212e-06/0.1269, allocations: 0 / 482.4 MB, free: 2.758 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002126/0.1271, allocations: 71.39 kB / 482.5 MB, free: 2.676 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.345e-05/0.1272, allocations: 81.23 kB / 482.6 MB, free: 2.578 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.813e-05/0.1273, allocations: 93.86 kB / 482.7 MB, free: 2.477 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.575e-05/0.1273, allocations: 25.7 kB / 482.7 MB, free: 2.445 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.532e-05/0.1273, allocations: 80.14 kB / 482.8 MB, free: 2.363 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.019e-05/0.1274, allocations: 3.938 kB / 482.8 MB, free: 2.359 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.203e-05/0.1274, allocations: 13.72 kB / 482.8 MB, free: 2.34 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001703/0.1276, allocations: 318.8 kB / 483.1 MB, free: 2.02 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.879e-05/0.1276, allocations: 4 kB / 483.1 MB, free: 2.016 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.727e-06/0.1276, allocations: 7.938 kB / 483.1 MB, free: 2.008 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.169e-05/0.1277, allocations: 60.27 kB / 483.2 MB, free: 1.934 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-06/0.1277, allocations: 0 / 483.2 MB, free: 1.934 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.799e-05/0.1278, allocations: 63.41 kB / 483.2 MB, free: 1.859 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.886e-05/0.1279, allocations: 33.69 kB / 483.3 MB, free: 1.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.007e-06/0.1279, allocations: 3.938 kB / 483.3 MB, free: 1.816 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.352e-05/0.1279, allocations: 0 / 483.3 MB, free: 1.816 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.02e-07/0.1279, allocations: 0 / 483.3 MB, free: 1.816 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.733e-06/0.1279, allocations: 7.938 kB / 483.3 MB, free: 1.809 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.023e-05/0.1279, allocations: 4.094 kB / 483.3 MB, free: 1.805 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.933e-06/0.1279, allocations: 0 / 483.3 MB, free: 1.805 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.917e-05/0.1281, allocations: 135.5 kB / 483.4 MB, free: 1.656 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.047e-05/0.1281, allocations: 0 / 483.4 MB, free: 1.656 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.168e-05/0.1281, allocations: 7.062 kB / 483.4 MB, free: 1.652 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.357e-06/0.1281, allocations: 3.984 kB / 483.4 MB, free: 1.648 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.1281, allocations: 0 / 483.4 MB, free: 1.648 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-06/0.1281, allocations: 0 / 483.4 MB, free: 1.648 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001288/0.1282, allocations: 145.7 kB / 483.6 MB, free: 1.457 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.1283, allocations: 0 / 483.6 MB, free: 1.457 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.242e-06/0.1283, allocations: 4 kB / 483.6 MB, free: 1.453 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.432e-06/0.1283, allocations: 0 / 483.6 MB, free: 1.453 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.017e-05/0.1283, allocations: 3.938 kB / 483.6 MB, free: 1.449 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.1283, allocations: 0 / 483.6 MB, free: 1.449 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.1283, allocations: 3.984 kB / 483.6 MB, free: 1.445 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000122/0.1284, allocations: 86.84 kB / 483.7 MB, free: 1.336 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.069e-05/0.1285, allocations: 85.02 kB / 483.7 MB, free: 1.234 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.989e-05/0.1285, allocations: 11.95 kB / 483.7 MB, free: 1.223 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.24e-05/0.1285, allocations: 4 kB / 483.8 MB, free: 1.219 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.43e-05/0.1285, allocations: 3.938 kB / 483.8 MB, free: 1.215 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.296e-06/0.1286, allocations: 3.938 kB / 483.8 MB, free: 1.211 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.626e-05/0.1286, allocations: 75.28 kB / 483.8 MB, free: 1.137 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1286, allocations: 0 / 483.8 MB, free: 1.137 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003609/0.129, allocations: 52 kB / 483.9 MB, free: 1.086 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.000823/0.1298, allocations: 0.7206 MB / 484.6 MB, free: 344 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001096/0.1299, allocations: 59.41 kB / 484.7 MB, free: 272 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.1299, allocations: 3.938 kB / 484.7 MB, free: 268 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.417e-05/0.13, allocations: 59.41 kB / 484.7 MB, free: 196 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001325/0.1301, allocations: 8.141 kB / 484.7 MB, free: 188 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003675/0.1305, allocations: 118.6 kB / 484.8 MB, free: 28 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003457/0.1309, allocations: 0.6729 MB / 485.5 MB, free: 15.33 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.006e-05/0.1309, allocations: 8 kB / 485.5 MB, free: 15.32 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.49e-05/0.1309, allocations: 7.438 kB / 485.5 MB, free: 15.32 MB / 366.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1309, allocations: 0 / 485.5 MB, free: 15.32 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02425/0.1552, allocations: 2.449 MB / 488 MB, free: 12.93 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.982/8.137, allocations: 8.281 kB / 488 MB, free: 12.93 MB / 366.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestBooleanFunctions.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestBooleanFunctions.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestBooleanFunctions.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestBooleanFunctions.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_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_4_1_0-beta_om_ModelicaTest_Math_TestBooleanFunctions.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestBooleanFunctions.pipe 2>&1)