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.002591/0.002591, allocations: 118.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002451/0.002451, allocations: 206 kB / 18.74 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.422/1.422, allocations: 227.4 MB / 247 MB, free: 10.4 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.225/0.225, allocations: 46.12 MB / 344.4 MB, free: 11.42 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.00253/0.00253, allocations: 79.86 kB / 480.9 MB, free: 4.496 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3333/0.3358, allocations: 62.43 MB / 0.5306 GB, free: 13.35 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestBooleanFunctions): time 0.001747/0.3376, allocations: 0.4898 MB / 0.5311 GB, free: 12.98 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009582/0.3386, allocations: 372 kB / 0.5314 GB, free: 12.72 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.195e-05/0.3387, allocations: 0 / 0.5314 GB, free: 12.72 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.584e-05/0.3387, allocations: 3.938 kB / 0.5314 GB, free: 12.71 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.072e-06/0.3387, allocations: 0 / 0.5314 GB, free: 12.71 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.0008886/0.3396, allocations: 205.1 kB / 0.5316 GB, free: 12.59 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.97e-05/0.3397, allocations: 5.875 kB / 0.5316 GB, free: 12.59 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.971e-05/0.3397, allocations: 0 / 0.5316 GB, free: 12.59 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.597e-05/0.3397, allocations: 2.312 kB / 0.5316 GB, free: 12.59 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.079e-05/0.3398, allocations: 0 / 0.5316 GB, free: 12.59 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.052e-06/0.3398, allocations: 0 / 0.5316 GB, free: 12.59 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003684/0.3401, allocations: 194.5 kB / 0.5318 GB, free: 12.48 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.933e-06/0.3402, allocations: 0 / 0.5318 GB, free: 12.48 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.77e-05/0.3402, allocations: 0 / 0.5318 GB, free: 12.48 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002404/0.3404, allocations: 148 kB / 0.5319 GB, free: 12.4 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.267e-06/0.3404, allocations: 7.938 kB / 0.5319 GB, free: 12.39 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.3404, allocations: 0 / 0.5319 GB, free: 12.39 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.12e-06/0.3405, allocations: 1.562 kB / 0.5319 GB, free: 12.39 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.0004214/0.3409, allocations: 362.2 kB / 0.5323 GB, free: 11.99 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.673e-05/0.3409, allocations: 10.56 kB / 0.5323 GB, free: 11.99 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.346e-05/0.341, allocations: 34.75 kB / 0.5323 GB, free: 11.95 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.395e-05/0.341, allocations: 2 kB / 0.5323 GB, free: 11.95 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001164/0.3411, allocations: 160.4 kB / 0.5325 GB, free: 11.75 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.935e-06/0.3411, allocations: 1.531 kB / 0.5325 GB, free: 11.75 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.218e-06/0.3411, allocations: 384 / 0.5325 GB, free: 11.75 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.734e-05/0.3412, allocations: 40.56 kB / 0.5325 GB, free: 11.71 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.187e-06/0.3413, allocations: 4.938 kB / 0.5325 GB, free: 11.71 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.192e-06/0.3413, allocations: 0 / 0.5325 GB, free: 11.71 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.048e-06/0.3413, allocations: 0 / 0.5325 GB, free: 11.71 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.896e-05/0.3413, allocations: 9.812 kB / 0.5325 GB, free: 11.7 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001748/0.3415, allocations: 146.5 kB / 0.5327 GB, free: 11.51 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.457e-05/0.3415, allocations: 25.19 kB / 0.5327 GB, free: 11.48 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.526e-05/0.3416, allocations: 10.14 kB / 0.5327 GB, free: 11.46 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.288e-06/0.3416, allocations: 0 / 0.5327 GB, free: 11.46 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.247e-05/0.3416, allocations: 65.38 kB / 0.5328 GB, free: 11.39 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 7.91e-07/0.3416, allocations: 0 / 0.5328 GB, free: 11.39 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001701/0.3418, allocations: 68.14 kB / 0.5328 GB, free: 11.32 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.544e-05/0.3419, allocations: 81.11 kB / 0.5329 GB, free: 11.22 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.475e-05/0.3419, allocations: 89.86 kB / 0.533 GB, free: 11.12 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.574e-05/0.342, allocations: 27.2 kB / 0.533 GB, free: 11.09 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.585e-05/0.342, allocations: 84.27 kB / 0.5331 GB, free: 11 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.972e-05/0.342, allocations: 7.922 kB / 0.5331 GB, free: 11 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.781e-05/0.3421, allocations: 12.41 kB / 0.5331 GB, free: 10.98 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001512/0.3422, allocations: 312.2 kB / 0.5334 GB, free: 10.67 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.029e-05/0.3422, allocations: 0 / 0.5334 GB, free: 10.67 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.532e-06/0.3422, allocations: 1.188 kB / 0.5334 GB, free: 10.67 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.189e-05/0.3423, allocations: 67.7 kB / 0.5335 GB, free: 10.59 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.3423, allocations: 4.062 kB / 0.5335 GB, free: 10.59 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.227e-05/0.3424, allocations: 63.2 kB / 0.5336 GB, free: 10.52 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.785e-05/0.3424, allocations: 31.36 kB / 0.5336 GB, free: 10.49 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.3425, allocations: 3.938 kB / 0.5336 GB, free: 10.48 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.613e-05/0.3425, allocations: 0 / 0.5336 GB, free: 10.48 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.024e-06/0.3425, allocations: 1.312 kB / 0.5336 GB, free: 10.48 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.899e-06/0.3425, allocations: 0 / 0.5336 GB, free: 10.48 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.481e-05/0.3425, allocations: 0 / 0.5336 GB, free: 10.48 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.703e-06/0.3425, allocations: 0.9375 kB / 0.5336 GB, free: 10.48 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.0001141/0.3426, allocations: 145.6 kB / 0.5337 GB, free: 10.33 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.307e-06/0.3427, allocations: 4.922 kB / 0.5337 GB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.236e-05/0.3427, allocations: 11.78 kB / 0.5338 GB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-06/0.3427, allocations: 1.25 kB / 0.5338 GB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.3427, allocations: 0 / 0.5338 GB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.3427, allocations: 0 / 0.5338 GB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00012/0.3428, allocations: 147 kB / 0.5339 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.91e-07/0.3428, allocations: 1.219 kB / 0.5339 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.11e-07/0.3428, allocations: 0 / 0.5339 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.3429, allocations: 3.984 kB / 0.5339 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.426e-06/0.3429, allocations: 9.156 kB / 0.5339 GB, free: 10.11 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.3429, allocations: 1.375 kB / 0.5339 GB, free: 10.11 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.3429, allocations: 0 / 0.5339 GB, free: 10.11 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001057/0.343, allocations: 86.31 kB / 0.534 GB, free: 10.02 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.509e-05/0.3431, allocations: 81.09 kB / 0.5341 GB, free: 9.918 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.56e-05/0.3431, allocations: 9.125 kB / 0.5341 GB, free: 9.91 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.586e-06/0.3431, allocations: 0 / 0.5341 GB, free: 9.91 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.244e-05/0.3431, allocations: 1.312 kB / 0.5341 GB, free: 9.91 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.059e-06/0.3431, allocations: 9.281 kB / 0.5341 GB, free: 9.902 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.787e-05/0.3432, allocations: 75.28 kB / 0.5342 GB, free: 9.828 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.094e-06/0.3432, allocations: 0 / 0.5342 GB, free: 9.828 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003154/0.3435, allocations: 59.77 kB / 0.5342 GB, free: 9.809 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.0008361/0.3443, allocations: 0.7133 MB / 0.5349 GB, free: 9.141 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001183/0.3445, allocations: 60.47 kB / 0.535 GB, free: 9.074 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.3445, allocations: 0 / 0.535 GB, free: 9.074 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.216e-05/0.3445, allocations: 58.42 kB / 0.535 GB, free: 9.008 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001286/0.3447, allocations: 2.938 kB / 0.535 GB, free: 9.008 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003297/0.345, allocations: 128.5 kB / 0.5352 GB, free: 8.859 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003972/0.3454, allocations: 0.6749 MB / 0.5358 GB, free: 8.16 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.124e-06/0.3454, allocations: 0 / 0.5358 GB, free: 8.16 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.578e-05/0.3454, allocations: 8.875 kB / 0.5358 GB, free: 8.152 MB / 398.1 MB Notification: Performance of SimCode: time 2.61e-07/0.3455, allocations: 1.688 kB / 0.5358 GB, free: 8.152 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02555/0.371, allocations: 2.429 MB / 0.5382 GB, free: 6.797 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.958/8.329, allocations: 10.81 kB / 0.5382 GB, free: 6.793 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 & 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)