Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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 trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Math.TestBooleanFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestBooleanFunctions") translateModel(ModelicaTest.Math.TestBooleanFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestBooleanFunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0014/0.0014, allocations: 113 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001593/0.001593, allocations: 212.9 kB / 19.4 MB, free: 3.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.403/1.403, allocations: 227.4 MB / 247.6 MB, free: 10.52 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2259/0.2259, allocations: 46.1 MB / 344.9 MB, free: 11.54 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001392/0.001392, allocations: 75.88 kB / 482 MB, free: 4.121 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3827/0.3841, allocations: 62.43 MB / 0.5316 GB, free: 13.64 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestBooleanFunctions): time 0.001586/0.3858, allocations: 0.4901 MB / 0.5321 GB, free: 13.28 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.000896/0.3867, allocations: 369.7 kB / 0.5325 GB, free: 13.01 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.64e-05/0.3867, allocations: 0 / 0.5325 GB, free: 13.01 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.749e-05/0.3867, allocations: 0 / 0.5325 GB, free: 13.01 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.033e-06/0.3868, allocations: 3.938 kB / 0.5325 GB, free: 13.01 MB / 398.1 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.0007786/0.3875, allocations: 190.3 kB / 0.5327 GB, free: 12.9 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.212e-05/0.3876, allocations: 9.375 kB / 0.5327 GB, free: 12.89 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.524e-05/0.3876, allocations: 5.359 kB / 0.5327 GB, free: 12.89 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.48e-05/0.3877, allocations: 9.25 kB / 0.5327 GB, free: 12.88 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.089e-05/0.3877, allocations: 4 kB / 0.5327 GB, free: 12.88 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.212e-06/0.3877, allocations: 1.375 kB / 0.5327 GB, free: 12.88 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003519/0.3881, allocations: 189.5 kB / 0.5329 GB, free: 12.78 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.544e-06/0.3881, allocations: 0 / 0.5329 GB, free: 12.78 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.981e-05/0.3881, allocations: 0 / 0.5329 GB, free: 12.78 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002428/0.3884, allocations: 150.2 kB / 0.533 GB, free: 12.69 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.3884, allocations: 0 / 0.533 GB, free: 12.69 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3884, allocations: 3.938 kB / 0.533 GB, free: 12.68 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.049e-06/0.3884, allocations: 0 / 0.533 GB, free: 12.68 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.000367/0.3888, allocations: 359.4 kB / 0.5333 GB, free: 12.29 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.853e-05/0.3888, allocations: 13.19 kB / 0.5334 GB, free: 12.29 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.399e-05/0.3888, allocations: 6.312 kB / 0.5334 GB, free: 12.28 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.639e-05/0.3889, allocations: 164.4 kB / 0.5335 GB, free: 12.08 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.223e-05/0.389, allocations: 1.781 kB / 0.5335 GB, free: 12.08 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.606e-06/0.389, allocations: 384 / 0.5335 GB, free: 12.08 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.913e-05/0.3891, allocations: 29.08 kB / 0.5336 GB, free: 12.05 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.665e-06/0.3891, allocations: 192 / 0.5336 GB, free: 12.05 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.03e-05/0.3891, allocations: 7.875 kB / 0.5336 GB, free: 12.04 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.487e-06/0.3891, allocations: 1.312 kB / 0.5336 GB, free: 12.04 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.795e-05/0.3891, allocations: 5.312 kB / 0.5336 GB, free: 12.04 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001337/0.3893, allocations: 147.1 kB / 0.5337 GB, free: 11.85 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.834e-05/0.3893, allocations: 19.86 kB / 0.5337 GB, free: 11.82 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.515e-05/0.3893, allocations: 5.859 kB / 0.5337 GB, free: 11.81 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.844e-06/0.3894, allocations: 1.312 kB / 0.5337 GB, free: 11.81 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.167e-05/0.3894, allocations: 57.2 kB / 0.5338 GB, free: 11.74 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.392e-06/0.3894, allocations: 0 / 0.5338 GB, free: 11.74 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001756/0.3896, allocations: 75.11 kB / 0.5339 GB, free: 11.66 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.367e-05/0.3896, allocations: 78.73 kB / 0.5339 GB, free: 11.57 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.893e-05/0.3897, allocations: 93.86 kB / 0.534 GB, free: 11.47 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.155e-05/0.3897, allocations: 25.7 kB / 0.534 GB, free: 11.44 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.755e-05/0.3897, allocations: 80.14 kB / 0.5341 GB, free: 11.36 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.971e-05/0.3898, allocations: 1.125 kB / 0.5341 GB, free: 11.36 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.968e-05/0.3898, allocations: 12.38 kB / 0.5341 GB, free: 11.34 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.93e-05/0.3899, allocations: 318.9 kB / 0.5344 GB, free: 11.02 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.061e-05/0.3899, allocations: 1.719 kB / 0.5344 GB, free: 11.02 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.05e-06/0.3899, allocations: 0 / 0.5344 GB, free: 11.02 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.754e-05/0.39, allocations: 71.84 kB / 0.5345 GB, free: 10.94 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/0.39, allocations: 0 / 0.5345 GB, free: 10.94 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.297e-05/0.3901, allocations: 58.34 kB / 0.5346 GB, free: 10.88 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.242e-05/0.3901, allocations: 31.73 kB / 0.5346 GB, free: 10.84 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.064e-06/0.3901, allocations: 4 kB / 0.5346 GB, free: 10.84 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.469e-05/0.3901, allocations: 13.27 kB / 0.5346 GB, free: 10.83 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.162e-06/0.3902, allocations: 4 kB / 0.5346 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.762e-06/0.3902, allocations: 3.984 kB / 0.5346 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.564e-05/0.3902, allocations: 1.312 kB / 0.5346 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.264e-06/0.3902, allocations: 0 / 0.5346 GB, free: 10.82 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 9.044e-05/0.3903, allocations: 142.1 kB / 0.5348 GB, free: 10.67 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.536e-06/0.3903, allocations: 1.469 kB / 0.5348 GB, free: 10.67 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.317e-06/0.3903, allocations: 7.062 kB / 0.5348 GB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.62e-07/0.3903, allocations: 0 / 0.5348 GB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.3903, allocations: 1.281 kB / 0.5348 GB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.535e-06/0.3903, allocations: 4 kB / 0.5348 GB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.534e-05/0.3904, allocations: 150.9 kB / 0.5349 GB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.3905, allocations: 1.25 kB / 0.5349 GB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.41e-07/0.3905, allocations: 0 / 0.5349 GB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.172e-06/0.3905, allocations: 0 / 0.5349 GB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.087e-06/0.3905, allocations: 5.25 kB / 0.5349 GB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.365e-06/0.3905, allocations: 3.938 kB / 0.5349 GB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.3905, allocations: 1.312 kB / 0.5349 GB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.461e-05/0.3906, allocations: 93.58 kB / 0.535 GB, free: 10.35 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.555e-05/0.3906, allocations: 81.02 kB / 0.5351 GB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.403e-05/0.3906, allocations: 4.938 kB / 0.5351 GB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.147e-06/0.3907, allocations: 1.062 kB / 0.5351 GB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.089e-05/0.3907, allocations: 1.125 kB / 0.5351 GB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.288e-06/0.3907, allocations: 3.984 kB / 0.5351 GB, free: 10.25 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.894e-05/0.3907, allocations: 76.47 kB / 0.5352 GB, free: 10.17 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3907, allocations: 0 / 0.5352 GB, free: 10.17 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002917/0.391, allocations: 55.52 kB / 0.5352 GB, free: 10.16 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.0004208/0.3915, allocations: 196.2 kB / 0.5354 GB, free: 10.02 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001056/0.3916, allocations: 61.41 kB / 0.5355 GB, free: 9.957 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.3916, allocations: 0 / 0.5355 GB, free: 9.957 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.348e-05/0.3916, allocations: 58.34 kB / 0.5355 GB, free: 9.891 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001231/0.3917, allocations: 2.688 kB / 0.5355 GB, free: 9.891 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001963/0.3919, allocations: 110.2 kB / 0.5356 GB, free: 9.758 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002203/0.3922, allocations: 0.6704 MB / 0.5363 GB, free: 9.062 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.286e-05/0.3922, allocations: 9.25 kB / 0.5363 GB, free: 9.055 MB / 398.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3922, allocations: 0 / 0.5363 GB, free: 9.055 MB / 398.1 MB Notification: Performance of Templates: time 0.003426/0.3956, allocations: 1.489 MB / 0.5378 GB, free: 8.305 MB / 398.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.TestBooleanFunctions.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestBooleanFunctions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestBooleanFunctions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestBooleanFunctions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestBooleanFunctions.sim & ./ModelicaTest_trunk_ModelicaTest.Math.TestBooleanFunctions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.TestBooleanFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.TestBooleanFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches