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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001815/0.001815, allocations: 107.2 kB / 20.44 MB, free: 1.207 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002181/0.002181, allocations: 210.2 kB / 23.73 MB, free: 4.406 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.449/1.449, allocations: 230.5 MB / 257.4 MB, free: 7.77 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2324/0.2324, allocations: 46.94 MB / 360.8 MB, free: 3.941 MB / 286.1 MB " [Timeout remaining time 180] 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: "" <> buildModelFMU(ModelicaTest.Math.TestBooleanFunctions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestBooleanFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestBooleanFunctions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestBooleanFunctions",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002287/0.002287, allocations: 75.88 kB / 0.4961 GB, free: 7.562 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3337/0.336, allocations: 66.09 MB / 0.5607 GB, free: 4.047 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestBooleanFunctions): time 0.001673/0.3376, allocations: 475.3 kB / 0.5611 GB, free: 3.586 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009437/0.3386, allocations: 381.2 kB / 0.5615 GB, free: 3.215 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.969e-05/0.3386, allocations: 0 / 0.5615 GB, free: 3.215 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.473e-05/0.3386, allocations: 0 / 0.5615 GB, free: 3.215 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.061e-06/0.3386, allocations: 4 kB / 0.5615 GB, free: 3.211 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.0008845/0.3395, allocations: 211.5 kB / 0.5617 GB, free: 3.004 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.819e-05/0.3396, allocations: 8 kB / 0.5617 GB, free: 2.996 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.562e-05/0.3396, allocations: 0 / 0.5617 GB, free: 2.996 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.932e-05/0.3396, allocations: 0 / 0.5617 GB, free: 2.996 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.433e-05/0.3396, allocations: 3.984 kB / 0.5617 GB, free: 2.992 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.014e-06/0.3396, allocations: 0 / 0.5617 GB, free: 2.992 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000413/0.3401, allocations: 215.6 kB / 0.5619 GB, free: 2.781 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.104e-05/0.3401, allocations: 3.984 kB / 0.5619 GB, free: 2.777 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.641e-05/0.3401, allocations: 4 kB / 0.5619 GB, free: 2.773 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002415/0.3403, allocations: 157.5 kB / 0.5621 GB, free: 2.621 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.556e-06/0.3403, allocations: 0 / 0.5621 GB, free: 2.621 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3403, allocations: 0 / 0.5621 GB, free: 2.621 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.599e-06/0.3404, allocations: 0 / 0.5621 GB, free: 2.621 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.000354/0.3407, allocations: 295.9 kB / 0.5624 GB, free: 2.293 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.64e-05/0.3407, allocations: 8.031 kB / 0.5624 GB, free: 2.285 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.598e-05/0.3408, allocations: 30.75 kB / 0.5624 GB, free: 2.246 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.619e-05/0.3408, allocations: 8.922 kB / 0.5624 GB, free: 2.238 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.239e-05/0.3409, allocations: 106.5 kB / 0.5625 GB, free: 2.109 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.15e-05/0.3409, allocations: 384 / 0.5625 GB, free: 2.109 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.702e-06/0.3409, allocations: 384 / 0.5625 GB, free: 2.109 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000105/0.341, allocations: 63.91 kB / 0.5626 GB, free: 2.035 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.265e-05/0.341, allocations: 3.938 kB / 0.5626 GB, free: 2.031 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.023e-06/0.341, allocations: 0 / 0.5626 GB, free: 2.031 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.508e-06/0.341, allocations: 0 / 0.5626 GB, free: 2.031 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.201e-05/0.3411, allocations: 29.7 kB / 0.5626 GB, free: 1.996 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001291/0.3412, allocations: 116.8 kB / 0.5627 GB, free: 1.84 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.671e-05/0.3413, allocations: 48.31 kB / 0.5628 GB, free: 1.777 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.87e-05/0.3413, allocations: 30.56 kB / 0.5628 GB, free: 1.738 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.818e-06/0.3413, allocations: 3.938 kB / 0.5628 GB, free: 1.734 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.929e-05/0.3413, allocations: 60.33 kB / 0.5629 GB, free: 1.66 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.22e-07/0.3413, allocations: 4 kB / 0.5629 GB, free: 1.656 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002428/0.3416, allocations: 130.6 kB / 0.563 GB, free: 1.504 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.988e-05/0.3417, allocations: 77.11 kB / 0.5631 GB, free: 1.41 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.479e-05/0.3417, allocations: 89.86 kB / 0.5631 GB, free: 1.312 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.582e-05/0.3417, allocations: 25.7 kB / 0.5632 GB, free: 1.281 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.412e-05/0.3418, allocations: 80.14 kB / 0.5632 GB, free: 1.199 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.041e-05/0.3418, allocations: 4 kB / 0.5632 GB, free: 1.195 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.885e-05/0.3418, allocations: 13.7 kB / 0.5633 GB, free: 1.176 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001454/0.342, allocations: 314.8 kB / 0.5636 GB, free: 0.8594 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.498e-05/0.342, allocations: 33.64 kB / 0.5636 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.389e-05/0.342, allocations: 33.77 kB / 0.5636 GB, free: 0.7812 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.852e-05/0.3421, allocations: 60.27 kB / 0.5637 GB, free: 0.707 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.3421, allocations: 0 / 0.5637 GB, free: 0.707 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.759e-05/0.3422, allocations: 93.09 kB / 0.5638 GB, free: 0.5977 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.347e-05/0.3422, allocations: 29.7 kB / 0.5638 GB, free: 0.5625 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.064e-06/0.3422, allocations: 3.938 kB / 0.5638 GB, free: 0.5586 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.436e-05/0.3422, allocations: 4 kB / 0.5638 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.072e-06/0.3422, allocations: 0 / 0.5638 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.182e-06/0.3422, allocations: 0 / 0.5638 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.553e-05/0.3422, allocations: 96 / 0.5638 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.173e-06/0.3422, allocations: 4 kB / 0.5638 GB, free: 0.5508 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.0001069/0.3424, allocations: 139.5 kB / 0.5639 GB, free: 408 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.853e-06/0.3424, allocations: 0 / 0.5639 GB, free: 408 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.382e-05/0.3424, allocations: 6.938 kB / 0.564 GB, free: 400 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.032e-06/0.3424, allocations: 3.938 kB / 0.564 GB, free: 396 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.479e-06/0.3424, allocations: 0 / 0.564 GB, free: 396 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.3424, allocations: 4 kB / 0.564 GB, free: 392 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.552e-05/0.3425, allocations: 112.8 kB / 0.5641 GB, free: 236 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.61e-07/0.3425, allocations: 0 / 0.5641 GB, free: 236 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.3425, allocations: 0 / 0.5641 GB, free: 236 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.113e-06/0.3425, allocations: 4 kB / 0.5641 GB, free: 232 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.808e-05/0.3425, allocations: 15.92 kB / 0.5641 GB, free: 216 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.51e-07/0.3425, allocations: 0 / 0.5641 GB, free: 216 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.3425, allocations: 0 / 0.5641 GB, free: 216 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001294/0.3426, allocations: 120.5 kB / 0.5642 GB, free: 64 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.298e-06/0.3426, allocations: 0 / 0.5642 GB, free: 64 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.66e-05/0.3427, allocations: 7.922 kB / 0.5642 GB, free: 56 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.938e-06/0.3427, allocations: 4 kB / 0.5642 GB, free: 52 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.131e-05/0.3427, allocations: 0 / 0.5642 GB, free: 52 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.285e-06/0.3427, allocations: 0 / 0.5642 GB, free: 52 kB / 398.1 MB Notification: Performance of sorting global known variables: time 5.776e-05/0.3427, allocations: 79.31 kB / 0.5643 GB, free: 15.97 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3427, allocations: 0 / 0.5643 GB, free: 15.97 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002869/0.343, allocations: 55.86 kB / 0.5643 GB, free: 15.92 MB / 414.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.000889/0.3439, allocations: 0.7484 MB / 0.5651 GB, free: 15.13 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001437/0.3441, allocations: 118.8 kB / 0.5652 GB, free: 14.99 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.3441, allocations: 0 / 0.5652 GB, free: 14.99 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.197e-05/0.3441, allocations: 89.14 kB / 0.5653 GB, free: 14.89 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001256/0.3442, allocations: 0 / 0.5653 GB, free: 14.89 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003417/0.3446, allocations: 152.3 kB / 0.5654 GB, free: 14.69 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.007e-05/0.3446, allocations: 55.36 kB / 0.5655 GB, free: 14.62 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.691e-06/0.3446, allocations: 0 / 0.5655 GB, free: 14.62 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.61e-05/0.3447, allocations: 11.44 kB / 0.5655 GB, free: 14.61 MB / 414.1 MB Notification: Performance of SimCode: time 2.9e-07/0.3447, allocations: 0 / 0.5655 GB, free: 14.61 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02869/0.3733, allocations: 2.957 MB / 0.5684 GB, free: 11.75 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.77/11.15, allocations: 4.062 kB / 0.5684 GB, free: 11.74 MB / 414.1 MB " [Timeout remaining time 649] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Math.TestBooleanFunctions_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Math_TestBooleanFunctions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Math_TestBooleanFunctions.fmu > ModelicaTest_trunk_ModelicaTest.Math.TestBooleanFunctions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.TestBooleanFunctions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.12574204057455]