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.001283, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001321/0.001321, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.443/1.443, allocations: 227.4 MB / 247 MB, free: 10.41 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.235/0.235, allocations: 46.13 MB / 344.4 MB, free: 11.44 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.002154/0.002154, allocations: 79.88 kB / 480.9 MB, free: 4.52 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3326/0.3348, allocations: 62.44 MB / 0.5306 GB, free: 13.37 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestBooleanFunctions): time 0.001549/0.3364, allocations: 0.4902 MB / 0.5311 GB, free: 13 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008955/0.3373, allocations: 371.4 kB / 0.5314 GB, free: 12.73 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.315e-05/0.3373, allocations: 0 / 0.5314 GB, free: 12.73 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.394e-05/0.3373, allocations: 3.938 kB / 0.5314 GB, free: 12.73 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.52e-06/0.3373, allocations: 0 / 0.5314 GB, free: 12.73 MB / 398.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.0007788/0.3381, allocations: 195.8 kB / 0.5316 GB, free: 12.62 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.161e-05/0.3382, allocations: 1.812 kB / 0.5316 GB, free: 12.62 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.474e-05/0.3382, allocations: 5.781 kB / 0.5316 GB, free: 12.61 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.261e-05/0.3382, allocations: 0 / 0.5316 GB, free: 12.61 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.961e-05/0.3383, allocations: 1.844 kB / 0.5316 GB, free: 12.61 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.483e-06/0.3383, allocations: 0 / 0.5316 GB, free: 12.61 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003618/0.3386, allocations: 192.5 kB / 0.5318 GB, free: 12.51 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.607e-06/0.3387, allocations: 0.875 kB / 0.5318 GB, free: 12.51 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.828e-05/0.3387, allocations: 1.125 kB / 0.5318 GB, free: 12.51 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002415/0.3389, allocations: 149.5 kB / 0.5319 GB, free: 12.42 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.3389, allocations: 3.938 kB / 0.5319 GB, free: 12.42 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.339, allocations: 0 / 0.5319 GB, free: 12.42 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.027e-06/0.339, allocations: 4 kB / 0.5319 GB, free: 12.41 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.0003979/0.3394, allocations: 367.1 kB / 0.5323 GB, free: 12.01 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.528e-05/0.3394, allocations: 10.94 kB / 0.5323 GB, free: 12.01 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.174e-05/0.3394, allocations: 30.75 kB / 0.5323 GB, free: 11.97 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.067e-05/0.3395, allocations: 0.9375 kB / 0.5323 GB, free: 11.97 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001097/0.3396, allocations: 160.4 kB / 0.5325 GB, free: 11.78 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.274e-05/0.3396, allocations: 12.06 kB / 0.5325 GB, free: 11.77 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.075e-06/0.3396, allocations: 384 / 0.5325 GB, free: 11.77 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.925e-05/0.3397, allocations: 30.25 kB / 0.5325 GB, free: 11.73 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.356e-06/0.3397, allocations: 7.938 kB / 0.5325 GB, free: 11.73 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.352e-06/0.3397, allocations: 2.969 kB / 0.5325 GB, free: 11.73 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.3397, allocations: 0 / 0.5325 GB, free: 11.73 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.655e-05/0.3398, allocations: 0 / 0.5325 GB, free: 11.73 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000157/0.3399, allocations: 157.4 kB / 0.5327 GB, free: 11.53 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.203e-05/0.34, allocations: 18.52 kB / 0.5327 GB, free: 11.5 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.305e-05/0.34, allocations: 12.78 kB / 0.5327 GB, free: 11.49 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.175e-06/0.34, allocations: 3.984 kB / 0.5327 GB, free: 11.48 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.625e-05/0.3401, allocations: 60.27 kB / 0.5328 GB, free: 11.41 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.32e-07/0.3401, allocations: 0 / 0.5328 GB, free: 11.41 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001659/0.3402, allocations: 70.17 kB / 0.5329 GB, free: 11.34 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.317e-05/0.3403, allocations: 77.11 kB / 0.5329 GB, free: 11.24 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.734e-05/0.3404, allocations: 93.84 kB / 0.533 GB, free: 11.14 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.509e-05/0.3404, allocations: 27.08 kB / 0.533 GB, free: 11.11 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.948e-05/0.3404, allocations: 80.14 kB / 0.5331 GB, free: 11.03 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.754e-05/0.3405, allocations: 9.438 kB / 0.5331 GB, free: 11.02 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.589e-05/0.3405, allocations: 11.09 kB / 0.5331 GB, free: 11 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001434/0.3406, allocations: 316.2 kB / 0.5334 GB, free: 10.69 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.949e-06/0.3407, allocations: 3.938 kB / 0.5334 GB, free: 10.68 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.709e-06/0.3407, allocations: 1.375 kB / 0.5334 GB, free: 10.68 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.386e-05/0.3407, allocations: 60.39 kB / 0.5335 GB, free: 10.61 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.3407, allocations: 0 / 0.5335 GB, free: 10.61 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.995e-05/0.3408, allocations: 62.36 kB / 0.5336 GB, free: 10.55 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.565e-05/0.3409, allocations: 39.2 kB / 0.5336 GB, free: 10.51 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.3409, allocations: 3.938 kB / 0.5336 GB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.183e-05/0.3409, allocations: 1.375 kB / 0.5336 GB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.01e-07/0.3409, allocations: 0 / 0.5336 GB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.408e-06/0.3409, allocations: 0 / 0.5336 GB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.462e-05/0.3409, allocations: 1.375 kB / 0.5336 GB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.357e-06/0.3409, allocations: 0 / 0.5336 GB, free: 10.5 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.000172/0.3411, allocations: 150.2 kB / 0.5337 GB, free: 10.34 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.795e-06/0.3411, allocations: 1.375 kB / 0.5337 GB, free: 10.34 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.728e-06/0.3411, allocations: 11.06 kB / 0.5338 GB, free: 10.34 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-06/0.3411, allocations: 0 / 0.5338 GB, free: 10.34 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.3412, allocations: 1.375 kB / 0.5338 GB, free: 10.34 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.914e-06/0.3412, allocations: 0 / 0.5338 GB, free: 10.34 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001148/0.3413, allocations: 143.1 kB / 0.5339 GB, free: 10.15 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.165e-06/0.3413, allocations: 3.984 kB / 0.5339 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.032e-06/0.3413, allocations: 1.375 kB / 0.5339 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.102e-06/0.3413, allocations: 3.938 kB / 0.5339 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.196e-06/0.3413, allocations: 5.312 kB / 0.5339 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.01e-07/0.3413, allocations: 0 / 0.5339 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.3413, allocations: 4 kB / 0.5339 GB, free: 10.13 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.708e-05/0.3414, allocations: 89.83 kB / 0.534 GB, free: 10.03 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.187e-05/0.3415, allocations: 77.11 kB / 0.5341 GB, free: 9.938 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.279e-05/0.3415, allocations: 5.312 kB / 0.5341 GB, free: 9.934 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.117e-06/0.3415, allocations: 1.344 kB / 0.5341 GB, free: 9.934 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.781e-05/0.3415, allocations: 4 kB / 0.5341 GB, free: 9.93 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.428e-06/0.3415, allocations: 9.25 kB / 0.5341 GB, free: 9.922 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.58e-05/0.3416, allocations: 79.31 kB / 0.5342 GB, free: 9.844 MB / 398.1 MB Notification: Performance of sort global known variables: time 5.851e-06/0.3416, allocations: 0 / 0.5342 GB, free: 9.844 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000269/0.3419, allocations: 60.27 kB / 0.5342 GB, free: 9.824 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.0007052/0.3426, allocations: 0.7073 MB / 0.5349 GB, free: 9.156 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.413e-05/0.3427, allocations: 57.16 kB / 0.535 GB, free: 9.094 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.959e-06/0.3427, allocations: 0 / 0.535 GB, free: 9.094 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.251e-05/0.3428, allocations: 62.77 kB / 0.535 GB, free: 9.023 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001158/0.3429, allocations: 2.031 kB / 0.535 GB, free: 9.023 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003198/0.3432, allocations: 125.6 kB / 0.5352 GB, free: 8.879 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003475/0.3436, allocations: 0.6701 MB / 0.5358 GB, free: 8.184 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.501e-06/0.3436, allocations: 128 / 0.5358 GB, free: 8.184 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.486e-05/0.3436, allocations: 13.97 kB / 0.5358 GB, free: 8.172 MB / 398.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3436, allocations: 0 / 0.5358 GB, free: 8.172 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02433/0.3679, allocations: 2.434 MB / 0.5382 GB, free: 6.82 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.799/8.167, allocations: 3.219 kB / 0.5382 GB, free: 6.82 MB / 398.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)