Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.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.0009353/0.0009353, allocations: 80.44 kB / 19.93 MB, free: 4.633 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.001135/0.001135, allocations: 169.9 kB / 23.21 MB, free: 1.352 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.927/0.927, allocations: 158.6 MB / 185 MB, free: 3.039 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1515/0.1515, allocations: 32.37 MB / 269.6 MB, free: 14.97 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.833e-06/1.833e-06, allocations: 0 / 406.8 MB, free: 2.258 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.154e-05/2.337e-05, allocations: 6.219 kB / 406.8 MB, free: 2.25 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002757/0.002781, allocations: 1.44 MB / 408.3 MB, free: 0.8047 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001249/0.00403, allocations: 435.8 kB / 408.7 MB, free: 380 kB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.278e-05/0.004072, allocations: 0 / 408.7 MB, free: 380 kB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 2.992e-05/0.004102, allocations: 7.938 kB / 408.7 MB, free: 372 kB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 5.154e-05/0.004154, allocations: 4 kB / 408.7 MB, free: 368 kB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002257/0.00438, allocations: 19.92 kB / 408.7 MB, free: 348 kB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 9.658e-05/0.004476, allocations: 35.84 kB / 408.8 MB, free: 312 kB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001218/0.004598, allocations: 7.984 kB / 408.8 MB, free: 304 kB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001286/0.004727, allocations: 23.92 kB / 408.8 MB, free: 280 kB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.704e-05/0.004794, allocations: 11.98 kB / 408.8 MB, free: 268 kB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 3.154e-05/0.004825, allocations: 4 kB / 408.8 MB, free: 264 kB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.155e-05/0.004837, allocations: 4 kB / 408.8 MB, free: 260 kB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 2.451e-05/0.004861, allocations: 7.922 kB / 408.8 MB, free: 252 kB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.844e-05/0.00489, allocations: 15.98 kB / 408.8 MB, free: 236 kB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001174/0.005007, allocations: 31.91 kB / 408.9 MB, free: 204 kB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.254e-06/0.005009, allocations: 0 / 408.9 MB, free: 204 kB / 378.7 MB Notification: Performance of FrontEnd: time 1.342e-06/0.005011, allocations: 0 / 408.9 MB, free: 204 kB / 378.7 MB Notification: Performance of Transformations before backend: time 5.22e-06/0.005016, allocations: 0 / 408.9 MB, free: 204 kB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004962/0.005512, allocations: 274.2 kB / 409.1 MB, free: 15.9 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.488e-05/0.005567, allocations: 8.031 kB / 409.1 MB, free: 15.89 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.213e-05/0.005609, allocations: 34.73 kB / 409.2 MB, free: 15.85 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.328e-05/0.005642, allocations: 4.938 kB / 409.2 MB, free: 15.85 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001182/0.005761, allocations: 121.6 kB / 409.3 MB, free: 15.7 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.458e-05/0.005775, allocations: 4.375 kB / 409.3 MB, free: 15.7 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.254e-05/0.005788, allocations: 4.375 kB / 409.3 MB, free: 15.7 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002086/0.005996, allocations: 85.66 kB / 409.4 MB, free: 15.59 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.172e-05/0.006008, allocations: 192 / 409.4 MB, free: 15.59 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.367e-05/0.006022, allocations: 8.062 kB / 409.4 MB, free: 15.59 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.71e-06/0.006027, allocations: 0 / 409.4 MB, free: 15.59 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.307e-05/0.00611, allocations: 23.97 kB / 409.4 MB, free: 15.56 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000451/0.006561, allocations: 224 kB / 409.6 MB, free: 15.3 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.238e-05/0.006654, allocations: 34.56 kB / 409.7 MB, free: 15.26 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.831e-05/0.006692, allocations: 20.84 kB / 409.7 MB, free: 15.23 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.808e-05/0.00671, allocations: 4 kB / 409.7 MB, free: 15.23 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.396e-05/0.006744, allocations: 30.56 kB / 409.7 MB, free: 15.19 MB / 394.7 MB Notification: Performance of pre-optimization done (n=2): time 1.403e-06/0.006746, allocations: 0 / 409.7 MB, free: 15.19 MB / 394.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001916/0.006937, allocations: 69.56 kB / 409.8 MB, free: 15.12 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.218e-05/0.006979, allocations: 81.11 kB / 409.9 MB, free: 15.02 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.003e-05/0.007039, allocations: 105.8 kB / 410 MB, free: 14.91 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.265e-05/0.007052, allocations: 25.7 kB / 410 MB, free: 14.88 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.59e-05/0.007098, allocations: 92.27 kB / 410.1 MB, free: 14.78 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.72e-05/0.007115, allocations: 7.891 kB / 410.1 MB, free: 14.77 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.879e-05/0.007144, allocations: 21.7 kB / 410.1 MB, free: 14.75 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 7.939e-05/0.007223, allocations: 310.8 kB / 410.4 MB, free: 14.43 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.905e-05/0.007252, allocations: 15.98 kB / 410.4 MB, free: 14.42 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.968e-05/0.007292, allocations: 47.42 kB / 410.5 MB, free: 14.36 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.746e-05/0.00734, allocations: 24.84 kB / 410.5 MB, free: 14.33 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.007341, allocations: 0 / 410.5 MB, free: 14.33 MB / 394.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 8.273e-05/0.007424, allocations: 73.58 kB / 410.6 MB, free: 14.25 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.268e-05/0.007437, allocations: 4 kB / 410.6 MB, free: 14.25 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.703e-06/0.007443, allocations: 4 kB / 410.6 MB, free: 14.25 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.253e-05/0.007456, allocations: 0 / 410.6 MB, free: 14.25 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.421e-05/0.00752, allocations: 7.984 kB / 410.6 MB, free: 14.24 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.61e-06/0.007526, allocations: 4 kB / 410.6 MB, free: 14.23 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.77e-05/0.007553, allocations: 4 kB / 410.6 MB, free: 14.23 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.591e-06/0.007559, allocations: 0 / 410.6 MB, free: 14.23 MB / 394.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: 2 (hysteresis.y,$PRE.hysteresis.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * 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 6.491e-05/0.007624, allocations: 113.8 kB / 410.7 MB, free: 14.11 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.6e-05/0.00764, allocations: 11.89 kB / 410.7 MB, free: 14.1 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.008e-05/0.00766, allocations: 15.56 kB / 410.7 MB, free: 14.08 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.007662, allocations: 0 / 410.7 MB, free: 14.08 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.007666, allocations: 0 / 410.7 MB, free: 14.08 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.945e-06/0.007669, allocations: 0 / 410.7 MB, free: 14.08 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001069/0.007776, allocations: 128.8 kB / 410.9 MB, free: 13.91 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.534e-06/0.007779, allocations: 3.938 kB / 410.9 MB, free: 13.91 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.798e-05/0.007797, allocations: 4 kB / 410.9 MB, free: 13.91 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.007799, allocations: 7.922 kB / 410.9 MB, free: 13.9 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.963e-06/0.007806, allocations: 0 / 410.9 MB, free: 13.9 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.007808, allocations: 320 / 410.9 MB, free: 13.9 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.007809, allocations: 0 / 410.9 MB, free: 13.9 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001047/0.007913, allocations: 155.5 kB / 411 MB, free: 13.73 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.127e-06/0.007923, allocations: 11.88 kB / 411.1 MB, free: 13.72 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.455e-05/0.007937, allocations: 0 / 411.1 MB, free: 13.72 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.781e-05/0.007985, allocations: 8 kB / 411.1 MB, free: 13.71 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.042e-05/0.008025, allocations: 3.984 kB / 411.1 MB, free: 13.71 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.52e-06/0.008031, allocations: 7.984 kB / 411.1 MB, free: 13.7 MB / 394.7 MB Notification: Performance of sorting global known variables: time 3.508e-05/0.008066, allocations: 87.27 kB / 411.2 MB, free: 13.61 MB / 394.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008066, allocations: 0 / 411.2 MB, free: 13.61 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000147/0.008213, allocations: 8 kB / 411.2 MB, free: 13.61 MB / 394.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 (hysteresis.y) * Number of discrete states: 1 (hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * 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.0003439/0.008557, allocations: 0.685 MB / 411.8 MB, free: 12.89 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001105/0.008667, allocations: 24.12 kB / 411.9 MB, free: 12.87 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.008669, allocations: 4 kB / 411.9 MB, free: 12.87 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 2.732e-05/0.008697, allocations: 15.98 kB / 411.9 MB, free: 12.85 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000152/0.008849, allocations: 3.938 kB / 411.9 MB, free: 12.85 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003804/0.009229, allocations: 154.5 kB / 412 MB, free: 12.66 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.538e-05/0.009284, allocations: 63.34 kB / 412.1 MB, free: 12.57 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 3.226e-05/0.009317, allocations: 8.062 kB / 412.1 MB, free: 12.57 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.376e-05/0.009361, allocations: 16.5 kB / 412.1 MB, free: 12.55 MB / 394.7 MB Notification: Performance of SimCode: time 4.71e-07/0.009361, allocations: 0 / 412.1 MB, free: 12.55 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01402/0.02338, allocations: 2.185 MB / 414.3 MB, free: 10.35 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.11/7.133, allocations: 15.61 kB / 414.3 MB, free: 10.34 MB / 394.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000598325 ModelicaTest_3_2_3_ModelicaTest_Blocks_Hysteresis.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable hysteresis.y in file ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis_res.csv. Warning: Get data of variable hysteresis.y from file ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.37179107684642]