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.0008668/0.0008668, allocations: 75.7 kB / 20.01 MB, free: 4.508 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.001003/0.001003, allocations: 169.9 kB / 23.32 MB, free: 1.207 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.948/0.948, allocations: 158.6 MB / 185.1 MB, free: 2.977 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.1606/0.1606, allocations: 32.38 MB / 269.7 MB, free: 14.91 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 2.365e-06/2.365e-06, allocations: 0 / 407 MB, free: 13.44 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.259e-05/2.496e-05, allocations: 6.219 kB / 407 MB, free: 13.43 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002745/0.00277, allocations: 1.456 MB / 408.5 MB, free: 11.97 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.000697/0.003467, allocations: 427.7 kB / 408.9 MB, free: 11.55 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.713e-05/0.003504, allocations: 0 / 408.9 MB, free: 11.55 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 2.367e-05/0.003527, allocations: 3.938 kB / 408.9 MB, free: 11.54 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 5.284e-05/0.00358, allocations: 11.92 kB / 408.9 MB, free: 11.53 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002247/0.003805, allocations: 23.91 kB / 409 MB, free: 11.51 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 7.112e-05/0.003876, allocations: 35.86 kB / 409 MB, free: 11.47 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001006/0.003977, allocations: 4 kB / 409 MB, free: 11.47 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.598e-05/0.004073, allocations: 23.97 kB / 409 MB, free: 11.45 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.64e-05/0.004139, allocations: 15.92 kB / 409 MB, free: 11.43 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.199e-05/0.004161, allocations: 4 kB / 409 MB, free: 11.43 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.979e-06/0.004171, allocations: 0 / 409 MB, free: 11.43 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 1.676e-05/0.004188, allocations: 4 kB / 409 MB, free: 11.42 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.764e-05/0.004215, allocations: 7.984 kB / 409 MB, free: 11.41 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001174/0.004333, allocations: 47.83 kB / 409.1 MB, free: 11.37 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.004338, allocations: 3.984 kB / 409.1 MB, free: 11.36 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.445e-06/0.00434, allocations: 0 / 409.1 MB, free: 11.36 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.5e-06/0.004346, allocations: 0 / 409.1 MB, free: 11.36 MB / 346.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.000455/0.004801, allocations: 270.2 kB / 409.4 MB, free: 11.07 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.91e-05/0.00486, allocations: 12.03 kB / 409.4 MB, free: 11.06 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.016e-05/0.00489, allocations: 30.75 kB / 409.4 MB, free: 11.02 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.741e-05/0.004917, allocations: 4.875 kB / 409.4 MB, free: 11.02 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.834e-05/0.005006, allocations: 109.8 kB / 409.5 MB, free: 10.88 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.224e-05/0.005018, allocations: 384 / 409.5 MB, free: 10.88 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.521e-05/0.005033, allocations: 12.38 kB / 409.5 MB, free: 10.87 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000338/0.005371, allocations: 81.66 kB / 409.6 MB, free: 10.77 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.977e-06/0.00538, allocations: 4.188 kB / 409.6 MB, free: 10.77 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.098e-05/0.005391, allocations: 4.125 kB / 409.6 MB, free: 10.77 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.533e-06/0.005398, allocations: 3.984 kB / 409.6 MB, free: 10.76 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.746e-05/0.005455, allocations: 19.98 kB / 409.6 MB, free: 10.74 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003613/0.005816, allocations: 224 kB / 409.9 MB, free: 10.48 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.484e-05/0.005891, allocations: 30.58 kB / 409.9 MB, free: 10.44 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.194e-05/0.005923, allocations: 24.84 kB / 409.9 MB, free: 10.41 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.592e-05/0.005939, allocations: 0 / 409.9 MB, free: 10.41 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.632e-05/0.005965, allocations: 34.56 kB / 409.9 MB, free: 10.37 MB / 346.7 MB Notification: Performance of pre-optimization done (n=2): time 1.203e-06/0.005967, allocations: 0 / 409.9 MB, free: 10.37 MB / 346.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002091/0.006176, allocations: 69.56 kB / 410 MB, free: 10.3 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.748e-05/0.006213, allocations: 81.05 kB / 410.1 MB, free: 10.2 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.283e-05/0.006276, allocations: 109.8 kB / 410.2 MB, free: 10.08 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.235e-05/0.006288, allocations: 25.7 kB / 410.2 MB, free: 10.05 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.016e-05/0.006329, allocations: 88.14 kB / 410.3 MB, free: 9.961 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.759e-05/0.006346, allocations: 16 kB / 410.3 MB, free: 9.945 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.447e-05/0.006371, allocations: 17.72 kB / 410.3 MB, free: 9.922 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.3e-05/0.006444, allocations: 310.8 kB / 410.6 MB, free: 9.609 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.444e-05/0.006478, allocations: 15.98 kB / 410.7 MB, free: 9.594 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.391e-05/0.006522, allocations: 51.41 kB / 410.7 MB, free: 9.531 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.784e-05/0.00657, allocations: 24.84 kB / 410.7 MB, free: 9.504 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.006572, allocations: 0 / 410.7 MB, free: 9.504 MB / 346.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.707e-05/0.006649, allocations: 65.56 kB / 410.8 MB, free: 9.434 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.305e-05/0.006662, allocations: 10.69 kB / 410.8 MB, free: 9.426 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.006666, allocations: 0 / 410.8 MB, free: 9.426 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.129e-05/0.006678, allocations: 0 / 410.8 MB, free: 9.426 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.373e-05/0.006731, allocations: 7.984 kB / 410.8 MB, free: 9.418 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.238e-06/0.006736, allocations: 0 / 410.8 MB, free: 9.418 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001345/0.00687, allocations: 11.98 kB / 410.8 MB, free: 9.406 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.39e-06/0.006876, allocations: 0 / 410.8 MB, free: 9.406 MB / 346.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 5.584e-05/0.006931, allocations: 113.8 kB / 410.9 MB, free: 9.285 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.735e-05/0.006949, allocations: 11.89 kB / 411 MB, free: 9.273 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.835e-05/0.006967, allocations: 7.625 kB / 411 MB, free: 9.266 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.006969, allocations: 4 kB / 411 MB, free: 9.262 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.006973, allocations: 0 / 411 MB, free: 9.262 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.006976, allocations: 0 / 411 MB, free: 9.262 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.424e-05/0.00707, allocations: 124.8 kB / 411.1 MB, free: 9.098 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.007072, allocations: 7.938 kB / 411.1 MB, free: 9.09 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.741e-05/0.007089, allocations: 7.922 kB / 411.1 MB, free: 9.082 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.007091, allocations: 0 / 411.1 MB, free: 9.082 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.742e-06/0.007098, allocations: 4 kB / 411.1 MB, free: 9.078 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.51e-07/0.007098, allocations: 0 / 411.1 MB, free: 9.078 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.0071, allocations: 0 / 411.1 MB, free: 9.078 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.971e-05/0.007199, allocations: 151.5 kB / 411.3 MB, free: 8.914 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.886e-06/0.007208, allocations: 11.89 kB / 411.3 MB, free: 8.902 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.213e-05/0.00722, allocations: 0 / 411.3 MB, free: 8.902 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.86e-05/0.007259, allocations: 7.984 kB / 411.3 MB, free: 8.895 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.998e-05/0.007299, allocations: 11.92 kB / 411.3 MB, free: 8.883 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.206e-06/0.007302, allocations: 0 / 411.3 MB, free: 8.883 MB / 346.7 MB Notification: Performance of sorting global known variables: time 3.374e-05/0.007336, allocations: 95.56 kB / 411.4 MB, free: 8.789 MB / 346.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007336, allocations: 0 / 411.4 MB, free: 8.789 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0001429/0.007479, allocations: 4 kB / 411.4 MB, free: 8.785 MB / 346.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.0002984/0.007777, allocations: 0.6852 MB / 412.1 MB, free: 8.07 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001172/0.007895, allocations: 31.95 kB / 412.1 MB, free: 8.039 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.007896, allocations: 0 / 412.1 MB, free: 8.039 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 2.685e-05/0.007923, allocations: 15.94 kB / 412.1 MB, free: 8.023 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000167/0.00809, allocations: 4 kB / 412.1 MB, free: 8.02 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003725/0.008463, allocations: 154.5 kB / 412.3 MB, free: 7.828 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.796e-05/0.008511, allocations: 67.34 kB / 412.3 MB, free: 7.742 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 2.959e-05/0.00854, allocations: 4 kB / 412.3 MB, free: 7.738 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.159e-05/0.008582, allocations: 12.5 kB / 412.4 MB, free: 7.727 MB / 346.7 MB Notification: Performance of SimCode: time 5.21e-07/0.008582, allocations: 0 / 412.4 MB, free: 7.727 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01688/0.02546, allocations: 2.175 MB / 414.5 MB, free: 5.543 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.68/6.705, allocations: 7.938 kB / 414.5 MB, free: 5.535 MB / 346.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: 8.919690932147205]