Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Math.TestBooleanFunctions.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(ModelicaTest.Math.TestBooleanFunctions,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Math_TestBooleanFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestBooleanFunctions,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Math_TestBooleanFunctions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009603/0.0009603, allocations: 199.7 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.331/1.331, allocations: 226.5 MB / 243.4 MB, free: 6.488 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008123/0.0008121, allocations: 99.34 kB / 295.5 MB, free: 6.664 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3583/0.3583, allocations: 44.83 MB / 392.3 MB, free: 35.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003085/0.0003086, allocations: 8 kB / 465.4 MB, free: 12.57 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3292/0.3295, allocations: 62.96 MB / 0.516 GB, free: 37.31 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestBooleanFunctions): time 0.000544/0.3301, allocations: 223.5 kB / 0.5162 GB, free: 37.16 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006094/0.3307, allocations: 350.6 kB / 0.5165 GB, free: 36.95 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.176e-05/0.3307, allocations: 0 / 0.5165 GB, free: 36.95 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 9.378e-06/0.3307, allocations: 4 kB / 0.5165 GB, free: 36.94 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 6.402e-06/0.3308, allocations: 0 / 0.5165 GB, free: 36.94 MB / 378.7 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.000585/0.3313, allocations: 165.3 kB / 0.5167 GB, free: 36.87 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 2.588e-05/0.3314, allocations: 2.656 kB / 0.5167 GB, free: 36.87 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.248e-05/0.3314, allocations: 0 / 0.5167 GB, free: 36.87 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.178e-05/0.3314, allocations: 0 / 0.5167 GB, free: 36.87 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.041e-05/0.3315, allocations: 3.984 kB / 0.5167 GB, free: 36.87 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.46e-06/0.3315, allocations: 2.469 kB / 0.5167 GB, free: 36.87 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000218/0.3317, allocations: 165.6 kB / 0.5168 GB, free: 36.82 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.644e-06/0.3317, allocations: 0 / 0.5168 GB, free: 36.82 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.85e-05/0.3317, allocations: 32.14 kB / 0.5169 GB, free: 36.78 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001339/0.3319, allocations: 105.5 kB / 0.517 GB, free: 36.76 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.3319, allocations: 0 / 0.517 GB, free: 36.76 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.442e-06/0.3319, allocations: 0 / 0.517 GB, free: 36.76 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.226e-06/0.3319, allocations: 0 / 0.517 GB, free: 36.76 MB / 378.7 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.0002411/0.3322, allocations: 363 kB / 0.5173 GB, free: 36.36 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.779e-05/0.3322, allocations: 8.844 kB / 0.5173 GB, free: 36.36 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.482e-05/0.3322, allocations: 30.75 kB / 0.5173 GB, free: 36.32 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.875e-05/0.3323, allocations: 0.9375 kB / 0.5173 GB, free: 36.32 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.285e-05/0.3323, allocations: 163 kB / 0.5175 GB, free: 36.13 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.548e-06/0.3323, allocations: 384 / 0.5175 GB, free: 36.13 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.943e-06/0.3323, allocations: 7.609 kB / 0.5175 GB, free: 36.12 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.961e-05/0.3324, allocations: 32.83 kB / 0.5175 GB, free: 36.09 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.764e-06/0.3324, allocations: 3.938 kB / 0.5175 GB, free: 36.09 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.791e-06/0.3324, allocations: 0 / 0.5175 GB, free: 36.09 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.222e-06/0.3325, allocations: 2.969 kB / 0.5175 GB, free: 36.09 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.557e-05/0.3325, allocations: 11.88 kB / 0.5176 GB, free: 36.07 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.16e-05/0.3326, allocations: 144.9 kB / 0.5177 GB, free: 35.89 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.121e-05/0.3326, allocations: 21.39 kB / 0.5177 GB, free: 35.86 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.12e-05/0.3326, allocations: 7.609 kB / 0.5177 GB, free: 35.85 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.887e-06/0.3326, allocations: 0 / 0.5177 GB, free: 35.85 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.866e-05/0.3327, allocations: 60.2 kB / 0.5178 GB, free: 35.78 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 7.91e-07/0.3327, allocations: 0 / 0.5178 GB, free: 35.78 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001378/0.3328, allocations: 72.34 kB / 0.5178 GB, free: 35.71 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.708e-05/0.3328, allocations: 77.11 kB / 0.5179 GB, free: 35.61 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.941e-05/0.3329, allocations: 89.98 kB / 0.518 GB, free: 35.52 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.122e-06/0.3329, allocations: 29.7 kB / 0.518 GB, free: 35.48 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.388e-06/0.3329, allocations: 80.14 kB / 0.5181 GB, free: 35.4 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.501e-05/0.3329, allocations: 0 / 0.5181 GB, free: 35.4 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.645e-06/0.3329, allocations: 3.594 kB / 0.5181 GB, free: 35.4 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.441e-05/0.333, allocations: 314.8 kB / 0.5184 GB, free: 35.08 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.775e-06/0.333, allocations: 3.281 kB / 0.5184 GB, free: 35.08 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.067e-06/0.333, allocations: 0 / 0.5184 GB, free: 35.08 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.039e-05/0.333, allocations: 63.3 kB / 0.5185 GB, free: 35.01 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.402e-06/0.333, allocations: 4 kB / 0.5185 GB, free: 35 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.757e-05/0.3331, allocations: 63.28 kB / 0.5185 GB, free: 34.94 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.241e-05/0.3331, allocations: 32.64 kB / 0.5186 GB, free: 34.91 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.468e-06/0.3331, allocations: 3.938 kB / 0.5186 GB, free: 34.91 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.066e-05/0.3331, allocations: 0 / 0.5186 GB, free: 34.91 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.82e-07/0.3331, allocations: 0 / 0.5186 GB, free: 34.91 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.268e-06/0.3331, allocations: 0 / 0.5186 GB, free: 34.91 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.361e-05/0.3332, allocations: 0 / 0.5186 GB, free: 34.91 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.171e-05/0.3332, allocations: 0 / 0.5186 GB, free: 34.91 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.419e-05/0.3332, allocations: 142.5 kB / 0.5187 GB, free: 34.75 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.224e-06/0.3333, allocations: 6.219 kB / 0.5187 GB, free: 34.75 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.286e-06/0.3333, allocations: 10.66 kB / 0.5187 GB, free: 34.75 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.082e-06/0.3333, allocations: 0 / 0.5187 GB, free: 34.75 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.725e-06/0.3333, allocations: 0 / 0.5187 GB, free: 34.75 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.733e-06/0.3333, allocations: 0 / 0.5187 GB, free: 34.75 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.126e-05/0.3333, allocations: 151.6 kB / 0.5189 GB, free: 34.56 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.3334, allocations: 7.922 kB / 0.5189 GB, free: 34.55 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.183e-06/0.3334, allocations: 0 / 0.5189 GB, free: 34.55 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.062e-06/0.3334, allocations: 3.938 kB / 0.5189 GB, free: 34.55 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.741e-06/0.3334, allocations: 7.938 kB / 0.5189 GB, free: 34.54 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.3334, allocations: 2.938 kB / 0.5189 GB, free: 34.54 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.3334, allocations: 0 / 0.5189 GB, free: 34.54 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.359e-05/0.3335, allocations: 90.78 kB / 0.519 GB, free: 34.44 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.426e-05/0.3335, allocations: 80.02 kB / 0.5191 GB, free: 34.34 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.174e-05/0.3335, allocations: 7.875 kB / 0.5191 GB, free: 34.34 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.636e-06/0.3335, allocations: 0 / 0.5191 GB, free: 34.34 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.036e-05/0.3335, allocations: 6.906 kB / 0.5191 GB, free: 34.33 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.265e-06/0.3335, allocations: 0 / 0.5191 GB, free: 34.33 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.592e-05/0.3335, allocations: 79.28 kB / 0.5192 GB, free: 34.25 MB / 378.7 MB Notification: Performance of sort global known variables: time 9e-08/0.3336, allocations: 0 / 0.5192 GB, free: 34.25 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002551/0.3338, allocations: 49.52 kB / 0.5192 GB, free: 34.25 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004833/0.3343, allocations: 0.7202 MB / 0.5199 GB, free: 33.6 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 6.525e-05/0.3344, allocations: 57.69 kB / 0.52 GB, free: 33.54 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.3344, allocations: 2.969 kB / 0.52 GB, free: 33.54 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.711e-05/0.3344, allocations: 54.31 kB / 0.52 GB, free: 33.47 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001167/0.3345, allocations: 1.688 kB / 0.52 GB, free: 33.47 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002563/0.3348, allocations: 161.9 kB / 0.5202 GB, free: 33.29 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.531e-05/0.3349, allocations: 0.6726 MB / 0.5208 GB, free: 32.59 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.061e-05/0.3349, allocations: 10.47 kB / 0.5208 GB, free: 32.59 MB / 378.7 MB Notification: Performance of SimCode: time 2.21e-07/0.3349, allocations: 0 / 0.5208 GB, free: 32.59 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.012/3.347, allocations: 1.697 MB / 0.5225 GB, free: 32.45 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Math.TestBooleanFunctions.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Math.TestBooleanFunctions.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Math.TestBooleanFunctions.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Math.TestBooleanFunctions.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Math.TestBooleanFunctions_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Math_TestBooleanFunctions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Math_TestBooleanFunctions.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Math.TestBooleanFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Math.TestBooleanFunctions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestBooleanFunctions/TestBooleanFunctions.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Math.TestBooleanFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches