Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Math.TestBooleanFunctions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008827/0.0008827, allocations: 91.67 kB / 20.68 MB, free: 3.871 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008175/0.0008175, allocations: 166 kB / 23.95 MB, free: 0.5977 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9541/0.9541, allocations: 177.1 MB / 204.3 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2647/0.2647, allocations: 34.25 MB / 294.9 MB, free: 0.7227 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.TestBooleanFunctions,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Math_TestBooleanFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestBooleanFunctions,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Math_TestBooleanFunctions",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.042e-06/1.042e-06, allocations: 0 / 442.1 MB, free: 1.715 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.881e-05/1.985e-05, allocations: 4.391 kB / 442.2 MB, free: 1.711 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestBooleanFunctions): time 0.001329/0.001349, allocations: 0.4892 MB / 442.6 MB, free: 1.223 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005422/0.001891, allocations: 379 kB / 443 MB, free: 0.8516 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.613e-05/0.001907, allocations: 0 / 443 MB, free: 0.8516 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.55e-05/0.001922, allocations: 0 / 443 MB, free: 0.8516 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 6.612e-06/0.001929, allocations: 0 / 443 MB, free: 0.8516 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.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.0006852/0.002614, allocations: 215.3 kB / 443.2 MB, free: 0.6406 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 4.656e-05/0.002661, allocations: 0 / 443.2 MB, free: 0.6406 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.521e-05/0.002696, allocations: 4 kB / 443.2 MB, free: 0.6367 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.543e-05/0.002721, allocations: 0 / 443.2 MB, free: 0.6367 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.124e-05/0.002743, allocations: 0 / 443.2 MB, free: 0.6367 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 8.196e-06/0.002751, allocations: 0 / 443.2 MB, free: 0.6367 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000295/0.003046, allocations: 231.5 kB / 443.4 MB, free: 420 kB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 8.035e-06/0.003054, allocations: 4 kB / 443.5 MB, free: 416 kB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.217e-05/0.003076, allocations: 0 / 443.5 MB, free: 416 kB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002356/0.003312, allocations: 187.5 kB / 443.6 MB, free: 228 kB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.965e-06/0.003315, allocations: 0 / 443.6 MB, free: 228 kB / 410.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.003316, allocations: 0 / 443.6 MB, free: 228 kB / 410.7 MB Notification: Performance of Transformations before backend: time 7.023e-06/0.003324, allocations: 0 / 443.6 MB, free: 228 kB / 410.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.1994/0.2027, allocations: 286 kB / 443.9 MB, free: 44.2 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.84e-05/0.2027, allocations: 11.06 kB / 443.9 MB, free: 44.2 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.262e-05/0.2028, allocations: 30.75 kB / 444 MB, free: 44.16 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.153e-05/0.2028, allocations: 0.9375 kB / 444 MB, free: 44.16 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 3.743e-05/0.2028, allocations: 104.5 kB / 444.1 MB, free: 44.04 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.19e-05/0.2028, allocations: 5.219 kB / 444.1 MB, free: 44.04 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.534e-06/0.2029, allocations: 384 / 444.1 MB, free: 44.04 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.65e-05/0.2029, allocations: 61.56 kB / 444.1 MB, free: 43.98 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.096e-06/0.2029, allocations: 192 / 444.1 MB, free: 43.98 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.426e-06/0.203, allocations: 6.312 kB / 444.1 MB, free: 43.98 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.05e-06/0.203, allocations: 4.125 kB / 444.1 MB, free: 43.97 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.864e-05/0.203, allocations: 30.3 kB / 444.2 MB, free: 43.94 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.635e-05/0.2031, allocations: 119.6 kB / 444.3 MB, free: 43.79 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.655e-05/0.2031, allocations: 44.31 kB / 444.3 MB, free: 43.73 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.47e-05/0.2031, allocations: 36.47 kB / 444.4 MB, free: 43.7 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.965e-06/0.2031, allocations: 0 / 444.4 MB, free: 43.7 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.431e-05/0.2031, allocations: 58.73 kB / 444.4 MB, free: 43.62 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 5.21e-07/0.2031, allocations: 2.688 kB / 444.4 MB, free: 43.62 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001581/0.2033, allocations: 122.5 kB / 444.5 MB, free: 43.5 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.79e-05/0.2033, allocations: 84.61 kB / 444.6 MB, free: 43.4 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.456e-05/0.2033, allocations: 92.11 kB / 444.7 MB, free: 43.3 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.989e-06/0.2033, allocations: 25.7 kB / 444.7 MB, free: 43.27 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.142e-06/0.2033, allocations: 83.64 kB / 444.8 MB, free: 43.19 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.826e-05/0.2034, allocations: 2.75 kB / 444.8 MB, free: 43.19 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.985e-05/0.2034, allocations: 12.53 kB / 444.8 MB, free: 43.18 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.774e-05/0.2034, allocations: 317.1 kB / 445.1 MB, free: 42.86 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.097e-05/0.2034, allocations: 25.7 kB / 445.2 MB, free: 42.83 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.324e-06/0.2034, allocations: 30.92 kB / 445.2 MB, free: 42.8 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.989e-05/0.2035, allocations: 61.89 kB / 445.3 MB, free: 42.73 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.2035, allocations: 0 / 445.3 MB, free: 42.73 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.065e-05/0.2035, allocations: 96.27 kB / 445.4 MB, free: 42.64 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.623e-05/0.2035, allocations: 31.23 kB / 445.4 MB, free: 42.61 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.56e-06/0.2035, allocations: 3.422 kB / 445.4 MB, free: 42.61 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.44e-05/0.2036, allocations: 0 / 445.4 MB, free: 42.61 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.41e-07/0.2036, allocations: 2.625 kB / 445.4 MB, free: 42.61 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.7e-06/0.2036, allocations: 7.812 kB / 445.4 MB, free: 42.6 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.675e-05/0.2036, allocations: 2.5 kB / 445.4 MB, free: 42.6 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.246e-06/0.2036, allocations: 3.422 kB / 445.4 MB, free: 42.6 MB / 410.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.311e-05/0.2036, allocations: 136.5 kB / 445.5 MB, free: 42.46 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.156e-06/0.2036, allocations: 0 / 445.5 MB, free: 42.46 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.06e-05/0.2036, allocations: 3 kB / 445.5 MB, free: 42.45 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.2036, allocations: 2.344 kB / 445.5 MB, free: 42.45 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.2036, allocations: 3.938 kB / 445.5 MB, free: 42.45 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.384e-06/0.2037, allocations: 0 / 445.5 MB, free: 42.45 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.381e-05/0.2037, allocations: 121.1 kB / 445.7 MB, free: 42.3 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.01e-07/0.2037, allocations: 3.938 kB / 445.7 MB, free: 42.3 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.72e-07/0.2037, allocations: 0.8438 kB / 445.7 MB, free: 42.3 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.032e-06/0.2037, allocations: 0 / 445.7 MB, free: 42.3 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.023e-06/0.2037, allocations: 2.438 kB / 445.7 MB, free: 42.3 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.91e-07/0.2037, allocations: 1.125 kB / 445.7 MB, free: 42.3 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.2037, allocations: 3.938 kB / 445.7 MB, free: 42.29 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.432e-05/0.2038, allocations: 117.4 kB / 445.8 MB, free: 42.16 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.137e-06/0.2038, allocations: 6.031 kB / 445.8 MB, free: 42.16 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.049e-05/0.2038, allocations: 3.375 kB / 445.8 MB, free: 42.16 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.67e-06/0.2038, allocations: 0 / 445.8 MB, free: 42.16 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.206e-05/0.2038, allocations: 11.62 kB / 445.8 MB, free: 42.16 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.433e-06/0.2038, allocations: 0 / 445.8 MB, free: 42.16 MB / 410.7 MB Notification: Performance of sorting global known variables: time 9.618e-06/0.2038, allocations: 75.28 kB / 445.9 MB, free: 42.09 MB / 410.7 MB Notification: Performance of sort global known variables: time 4e-08/0.2038, allocations: 0.5469 kB / 445.9 MB, free: 42.09 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002525/0.2041, allocations: 52.61 kB / 445.9 MB, free: 42.09 MB / 410.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 (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.0004906/0.2045, allocations: 0.7528 MB / 446.7 MB, free: 41.43 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001046/0.2047, allocations: 116.9 kB / 446.8 MB, free: 41.31 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.463e-06/0.2047, allocations: 0 / 446.8 MB, free: 41.31 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.636e-05/0.2047, allocations: 80.67 kB / 446.9 MB, free: 41.21 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001042/0.2048, allocations: 6.625 kB / 446.9 MB, free: 41.21 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002919/0.2051, allocations: 152.8 kB / 447 MB, free: 41.05 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.234e-05/0.2051, allocations: 61.16 kB / 447.1 MB, free: 40.98 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 5.661e-06/0.2051, allocations: 0 / 447.1 MB, free: 40.98 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.589e-05/0.2051, allocations: 11.16 kB / 447.1 MB, free: 40.98 MB / 410.7 MB Notification: Performance of SimCode: time 5.81e-07/0.2051, allocations: 0 / 447.1 MB, free: 40.98 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02022/0.2253, allocations: 3.14 MB / 450.2 MB, free: 39.98 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.982/7.207, allocations: 0.5 kB / 450.2 MB, free: 39.98 MB / 410.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.TestBooleanFunctions.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.TestBooleanFunctions.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.TestBooleanFunctions.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.TestBooleanFunctions.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0_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_ModelicaTest_Math_TestBooleanFunctions.fmu > ModelicaTest_4.1.0_ModelicaTest.Math.TestBooleanFunctions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Math.TestBooleanFunctions_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/TestBooleanFunctions/TestBooleanFunctions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Math.TestBooleanFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Failed to open simulation result ModelicaTest_4.1.0_ModelicaTest.Math.TestBooleanFunctions_res.csv: Error: Error opening file: ModelicaTest_4.1.0_ModelicaTest.Math.TestBooleanFunctions_res.csv " [Timeout remaining time 660] "" Variables in the reference:time,result Variables in the result: [Calling sys.exit(0), Time elapsed: 9.332918867468834]