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.001327/0.001327, allocations: 111.1 kB / 20.44 MB, free: 1.352 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.001626/0.001626, allocations: 218 kB / 23.73 MB, free: 4.531 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.459/1.459, allocations: 230.5 MB / 257.4 MB, free: 7.738 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.2362/0.2362, allocations: 46.95 MB / 360.8 MB, free: 3.918 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.002736/0.002736, allocations: 87.86 kB / 0.4961 GB, free: 7.566 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3359/0.3387, allocations: 66.09 MB / 0.5607 GB, free: 4.035 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestBooleanFunctions): time 0.001947/0.3406, allocations: 493.1 kB / 0.5611 GB, free: 3.555 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009502/0.3416, allocations: 373.3 kB / 0.5615 GB, free: 3.191 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.598e-05/0.3416, allocations: 0 / 0.5615 GB, free: 3.191 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.716e-05/0.3416, allocations: 0 / 0.5615 GB, free: 3.191 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.551e-06/0.3416, allocations: 0 / 0.5615 GB, free: 3.191 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.0009949/0.3426, allocations: 218.9 kB / 0.5617 GB, free: 2.98 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.039e-05/0.3426, allocations: 0 / 0.5617 GB, free: 2.98 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.989e-05/0.3427, allocations: 4 kB / 0.5617 GB, free: 2.977 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.798e-05/0.3427, allocations: 3.938 kB / 0.5617 GB, free: 2.973 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.932e-05/0.3427, allocations: 0 / 0.5617 GB, free: 2.973 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.111e-06/0.3427, allocations: 0 / 0.5617 GB, free: 2.973 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005357/0.3433, allocations: 227.5 kB / 0.5619 GB, free: 2.75 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.068e-05/0.3433, allocations: 0 / 0.5619 GB, free: 2.75 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.268e-05/0.3433, allocations: 0 / 0.5619 GB, free: 2.75 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003935/0.3437, allocations: 141.5 kB / 0.5621 GB, free: 2.613 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.3437, allocations: 4 kB / 0.5621 GB, free: 2.609 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.3437, allocations: 4 kB / 0.5621 GB, free: 2.605 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.434e-06/0.3437, allocations: 0 / 0.5621 GB, free: 2.605 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.0004412/0.3441, allocations: 295.9 kB / 0.5624 GB, free: 2.277 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.184e-05/0.3442, allocations: 11.97 kB / 0.5624 GB, free: 2.266 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.701e-05/0.3442, allocations: 34.73 kB / 0.5624 GB, free: 2.223 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.908e-05/0.3443, allocations: 4.938 kB / 0.5624 GB, free: 2.219 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001021/0.3444, allocations: 110.5 kB / 0.5625 GB, free: 2.086 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.365e-06/0.3444, allocations: 384 / 0.5625 GB, free: 2.086 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.112e-05/0.3444, allocations: 384 / 0.5625 GB, free: 2.086 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001188/0.3445, allocations: 55.97 kB / 0.5626 GB, free: 2.02 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.007e-06/0.3445, allocations: 7.938 kB / 0.5626 GB, free: 2.012 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.805e-06/0.3445, allocations: 0 / 0.5626 GB, free: 2.012 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.227e-06/0.3445, allocations: 0 / 0.5626 GB, free: 2.012 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.663e-05/0.3446, allocations: 25.7 kB / 0.5626 GB, free: 1.98 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000157/0.3447, allocations: 124.8 kB / 0.5627 GB, free: 1.816 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.227e-05/0.3448, allocations: 44.31 kB / 0.5628 GB, free: 1.758 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.136e-05/0.3448, allocations: 34.56 kB / 0.5628 GB, free: 1.715 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.308e-06/0.3448, allocations: 0 / 0.5628 GB, free: 1.715 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.07e-05/0.3449, allocations: 56.27 kB / 0.5628 GB, free: 1.645 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.002e-06/0.3449, allocations: 0 / 0.5628 GB, free: 1.645 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002316/0.3451, allocations: 142.6 kB / 0.563 GB, free: 1.48 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.923e-05/0.3452, allocations: 77.11 kB / 0.5631 GB, free: 1.387 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.159e-05/0.3452, allocations: 89.86 kB / 0.5631 GB, free: 1.289 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.734e-05/0.3452, allocations: 25.7 kB / 0.5632 GB, free: 1.258 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.753e-05/0.3453, allocations: 84.08 kB / 0.5632 GB, free: 1.172 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.115e-05/0.3453, allocations: 0 / 0.5632 GB, free: 1.172 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.173e-05/0.3453, allocations: 17.7 kB / 0.5633 GB, free: 1.148 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001455/0.3455, allocations: 314.8 kB / 0.5636 GB, free: 0.832 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.782e-05/0.3455, allocations: 29.7 kB / 0.5636 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.963e-05/0.3455, allocations: 25.7 kB / 0.5636 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.84e-05/0.3456, allocations: 64.45 kB / 0.5637 GB, free: 0.6875 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.3456, allocations: 0 / 0.5637 GB, free: 0.6875 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.892e-05/0.3457, allocations: 97.03 kB / 0.5638 GB, free: 0.5742 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.158e-05/0.3457, allocations: 29.7 kB / 0.5638 GB, free: 0.5391 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.313e-06/0.3457, allocations: 7.875 kB / 0.5638 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.728e-05/0.3458, allocations: 0 / 0.5638 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.72e-07/0.3458, allocations: 0 / 0.5638 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.726e-06/0.3458, allocations: 4 kB / 0.5638 GB, free: 0.5273 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.654e-05/0.3458, allocations: 0 / 0.5638 GB, free: 0.5273 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.891e-06/0.3458, allocations: 0 / 0.5638 GB, free: 0.5273 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.0001063/0.3459, allocations: 144.9 kB / 0.564 GB, free: 380 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.889e-06/0.3459, allocations: 0 / 0.564 GB, free: 380 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.499e-05/0.3459, allocations: 6.938 kB / 0.564 GB, free: 372 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-06/0.3459, allocations: 0 / 0.564 GB, free: 372 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.3459, allocations: 0 / 0.564 GB, free: 372 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.364e-06/0.3459, allocations: 0 / 0.564 GB, free: 372 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001024/0.346, allocations: 120.8 kB / 0.5641 GB, free: 208 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.346, allocations: 0 / 0.5641 GB, free: 208 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.296e-06/0.346, allocations: 7.969 kB / 0.5641 GB, free: 200 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.694e-06/0.346, allocations: 0 / 0.5641 GB, free: 200 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.158e-05/0.3461, allocations: 7.938 kB / 0.5641 GB, free: 192 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.3461, allocations: 0 / 0.5641 GB, free: 192 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.3461, allocations: 0 / 0.5641 GB, free: 192 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001221/0.3462, allocations: 124.5 kB / 0.5642 GB, free: 36 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.968e-06/0.3462, allocations: 4 kB / 0.5642 GB, free: 32 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.508e-05/0.3462, allocations: 3.938 kB / 0.5642 GB, free: 28 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.074e-05/0.3462, allocations: 0 / 0.5642 GB, free: 28 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.444e-05/0.3462, allocations: 0 / 0.5642 GB, free: 28 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.465e-06/0.3462, allocations: 4 kB / 0.5642 GB, free: 24 kB / 398.1 MB Notification: Performance of sorting global known variables: time 5.287e-05/0.3463, allocations: 75.28 kB / 0.5643 GB, free: 15.95 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3463, allocations: 0 / 0.5643 GB, free: 15.95 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002833/0.3466, allocations: 59.89 kB / 0.5643 GB, free: 15.89 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.0008021/0.3474, allocations: 0.7401 MB / 0.5651 GB, free: 15.11 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001507/0.3475, allocations: 122.7 kB / 0.5652 GB, free: 14.97 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.3475, allocations: 0 / 0.5652 GB, free: 14.97 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.456e-05/0.3476, allocations: 81.11 kB / 0.5653 GB, free: 14.87 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001278/0.3477, allocations: 160 / 0.5653 GB, free: 14.87 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003643/0.3481, allocations: 156.3 kB / 0.5654 GB, free: 14.67 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.457e-05/0.3481, allocations: 55.36 kB / 0.5655 GB, free: 14.6 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.22e-06/0.3481, allocations: 0 / 0.5655 GB, free: 14.6 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.892e-05/0.3481, allocations: 7.438 kB / 0.5655 GB, free: 14.59 MB / 414.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3481, allocations: 0 / 0.5655 GB, free: 14.59 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02835/0.3765, allocations: 2.963 MB / 0.5684 GB, free: 11.73 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.12/11.5, allocations: 3.375 kB / 0.5684 GB, free: 11.73 MB / 414.1 MB " [Timeout remaining time 648] (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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_Math_TestBooleanFunctions.fmu > ModelicaTest_trunk_ModelicaTest.Math.TestBooleanFunctions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.TestBooleanFunctions_res.csv","/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.424280493054539]