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.001283/0.001282, allocations: 104.9 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001516/0.001516, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.42/1.42, allocations: 227.4 MB / 246.8 MB, free: 10.54 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.2286/0.2286, allocations: 46.11 MB / 344.2 MB, free: 11.56 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.002232/0.002232, allocations: 83.34 kB / 417.8 MB, free: 19.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1188/0.1211, allocations: 62.45 MB / 480.2 MB, free: 5.145 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestBooleanFunctions): time 0.001647/0.1227, allocations: 491.7 kB / 480.7 MB, free: 4.66 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000831/0.1236, allocations: 369.7 kB / 481 MB, free: 4.301 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.462e-05/0.1236, allocations: 0 / 481 MB, free: 4.301 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.44e-05/0.1237, allocations: 0 / 481 MB, free: 4.301 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.609e-06/0.1237, allocations: 0 / 481 MB, free: 4.301 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.0007691/0.1244, allocations: 210.6 kB / 481.2 MB, free: 4.098 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.414e-05/0.1245, allocations: 0 / 481.2 MB, free: 4.098 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.337e-05/0.1245, allocations: 4 kB / 481.3 MB, free: 4.094 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.198e-05/0.1245, allocations: 3.938 kB / 481.3 MB, free: 4.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.14e-05/0.1246, allocations: 7.922 kB / 481.3 MB, free: 4.082 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.641e-06/0.1246, allocations: 0 / 481.3 MB, free: 4.082 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003008/0.1249, allocations: 159.7 kB / 481.4 MB, free: 3.926 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.232e-06/0.1249, allocations: 3.938 kB / 481.4 MB, free: 3.922 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.795e-05/0.1249, allocations: 0 / 481.4 MB, free: 3.922 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002533/0.1252, allocations: 147.8 kB / 481.6 MB, free: 3.777 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.1252, allocations: 0 / 481.6 MB, free: 3.777 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.1252, allocations: 4 kB / 481.6 MB, free: 3.773 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.328e-06/0.1252, allocations: 0 / 481.6 MB, free: 3.773 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.0003921/0.1256, allocations: 369.2 kB / 481.9 MB, free: 3.355 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.407e-05/0.1257, allocations: 8.031 kB / 481.9 MB, free: 3.348 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.325e-05/0.1257, allocations: 30.75 kB / 482 MB, free: 3.309 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.982e-05/0.1257, allocations: 12.86 kB / 482 MB, free: 3.297 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001152/0.1259, allocations: 160.4 kB / 482.1 MB, free: 3.102 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.999e-06/0.1259, allocations: 384 / 482.1 MB, free: 3.102 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.881e-06/0.1259, allocations: 384 / 482.1 MB, free: 3.102 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.801e-05/0.126, allocations: 34.27 kB / 482.2 MB, free: 3.062 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.995e-06/0.126, allocations: 3.938 kB / 482.2 MB, free: 3.059 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.803e-06/0.126, allocations: 0 / 482.2 MB, free: 3.059 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.617e-06/0.126, allocations: 0 / 482.2 MB, free: 3.059 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.572e-05/0.126, allocations: 0 / 482.2 MB, free: 3.059 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001502/0.1262, allocations: 153.7 kB / 482.3 MB, free: 2.859 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.097e-05/0.1262, allocations: 18.52 kB / 482.3 MB, free: 2.832 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.316e-05/0.1262, allocations: 4.859 kB / 482.4 MB, free: 2.824 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.742e-06/0.1263, allocations: 4 kB / 482.4 MB, free: 2.82 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.677e-05/0.1263, allocations: 60.36 kB / 482.4 MB, free: 2.746 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.62e-07/0.1263, allocations: 0 / 482.4 MB, free: 2.746 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001585/0.1265, allocations: 75.31 kB / 482.5 MB, free: 2.66 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.74e-05/0.1266, allocations: 81.05 kB / 482.6 MB, free: 2.562 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.761e-05/0.1266, allocations: 89.86 kB / 482.7 MB, free: 2.465 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.57e-05/0.1266, allocations: 25.7 kB / 482.7 MB, free: 2.434 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.254e-05/0.1267, allocations: 80.27 kB / 482.8 MB, free: 2.352 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.304e-05/0.1267, allocations: 4 kB / 482.8 MB, free: 2.348 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.085e-05/0.1267, allocations: 13.72 kB / 482.8 MB, free: 2.328 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001486/0.1269, allocations: 314.8 kB / 483.1 MB, free: 2.012 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.598e-06/0.1269, allocations: 0 / 483.1 MB, free: 2.012 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.768e-06/0.1269, allocations: 7.984 kB / 483.1 MB, free: 2.004 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.443e-05/0.127, allocations: 56.27 kB / 483.1 MB, free: 1.934 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.313e-06/0.127, allocations: 7.938 kB / 483.2 MB, free: 1.926 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.952e-05/0.1271, allocations: 59.47 kB / 483.2 MB, free: 1.855 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.673e-05/0.1271, allocations: 37.7 kB / 483.2 MB, free: 1.812 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.067e-05/0.1271, allocations: 7.922 kB / 483.3 MB, free: 1.805 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.05e-05/0.1271, allocations: 7.875 kB / 483.3 MB, free: 1.797 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.92e-07/0.1271, allocations: 0 / 483.3 MB, free: 1.797 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.177e-06/0.1271, allocations: 0 / 483.3 MB, free: 1.797 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.387e-05/0.1272, allocations: 0 / 483.3 MB, free: 1.797 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.5e-06/0.1272, allocations: 0 / 483.3 MB, free: 1.797 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.679e-05/0.1273, allocations: 135.5 kB / 483.4 MB, free: 1.648 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.817e-06/0.1273, allocations: 4.031 kB / 483.4 MB, free: 1.645 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.004e-05/0.1273, allocations: 7.062 kB / 483.4 MB, free: 1.641 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.302e-06/0.1273, allocations: 0 / 483.4 MB, free: 1.641 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/0.1273, allocations: 4 kB / 483.4 MB, free: 1.637 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.084e-06/0.1273, allocations: 0 / 483.4 MB, free: 1.637 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001257/0.1275, allocations: 153.7 kB / 483.6 MB, free: 1.438 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.1275, allocations: 0 / 483.6 MB, free: 1.438 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.1275, allocations: 0 / 483.6 MB, free: 1.438 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.223e-06/0.1275, allocations: 0 / 483.6 MB, free: 1.438 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.033e-05/0.1275, allocations: 7.938 kB / 483.6 MB, free: 1.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.81e-07/0.1275, allocations: 0 / 483.6 MB, free: 1.43 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.1275, allocations: 4 kB / 483.6 MB, free: 1.426 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000114/0.1276, allocations: 94.77 kB / 483.7 MB, free: 1.309 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.198e-05/0.1277, allocations: 81.02 kB / 483.7 MB, free: 1.211 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.406e-05/0.1277, allocations: 3.938 kB / 483.7 MB, free: 1.207 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.716e-06/0.1277, allocations: 0 / 483.7 MB, free: 1.207 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.227e-05/0.1277, allocations: 4 kB / 483.8 MB, free: 1.203 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.947e-06/0.1277, allocations: 7.984 kB / 483.8 MB, free: 1.195 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.391e-05/0.1278, allocations: 79.31 kB / 483.8 MB, free: 1.117 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.1278, allocations: 0 / 483.8 MB, free: 1.117 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002931/0.1281, allocations: 52 kB / 483.9 MB, free: 1.066 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.0007216/0.1288, allocations: 0.7197 MB / 484.6 MB, free: 324 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.627e-05/0.1289, allocations: 59.34 kB / 484.7 MB, free: 252 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.1289, allocations: 0 / 484.7 MB, free: 252 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.81e-05/0.129, allocations: 55.41 kB / 484.7 MB, free: 184 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001284/0.1291, allocations: 10.23 kB / 484.7 MB, free: 176 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003274/0.1294, allocations: 122.6 kB / 484.8 MB, free: 12 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003127/0.1298, allocations: 0.669 MB / 485.5 MB, free: 15.32 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.436e-06/0.1298, allocations: 12.11 kB / 485.5 MB, free: 15.3 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.087e-05/0.1298, allocations: 7.438 kB / 485.5 MB, free: 15.3 MB / 366.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1298, allocations: 4 kB / 485.5 MB, free: 15.3 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02399/0.1538, allocations: 2.438 MB / 488 MB, free: 12.92 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.191/8.345, allocations: 11.94 kB / 488 MB, free: 12.91 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestBooleanFunctions_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestBooleanFunctions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestBooleanFunctions.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestBooleanFunctions.pipe 2>&1)