Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_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.0008729/0.0008729, allocations: 83.69 kB / 20.67 MB, free: 3.887 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.001027/0.001027, allocations: 170.3 kB / 23.95 MB, free: 0.6094 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.9227/0.9227, allocations: 177.1 MB / 204.3 MB, free: 5.719 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.2788/0.2788, allocations: 34.25 MB / 294.9 MB, free: 0.7188 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.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.372e-06/1.372e-06, allocations: 0 / 442.1 MB, free: 1.676 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.296e-05/2.433e-05, allocations: 2.281 kB / 442.2 MB, free: 1.672 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002302/0.002326, allocations: 1.477 MB / 443.6 MB, free: 188 kB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.1812/0.1835, allocations: 445 kB / 444.1 MB, free: 43.29 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.806e-05/0.1836, allocations: 2.906 kB / 444.1 MB, free: 43.29 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 2.59e-05/0.1836, allocations: 4.625 kB / 444.1 MB, free: 43.29 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 4.378e-05/0.1836, allocations: 9.047 kB / 444.1 MB, free: 43.29 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002214/0.1839, allocations: 26.91 kB / 444.1 MB, free: 43.29 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 8.971e-05/0.184, allocations: 48.09 kB / 444.2 MB, free: 43.29 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.526e-05/0.184, allocations: 4.156 kB / 444.2 MB, free: 43.29 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001079/0.1842, allocations: 29.45 kB / 444.2 MB, free: 43.29 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.726e-05/0.1842, allocations: 12.31 kB / 444.2 MB, free: 43.29 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 1.46e-05/0.1842, allocations: 2.969 kB / 444.2 MB, free: 43.29 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.581e-05/0.1842, allocations: 8.062 kB / 444.2 MB, free: 43.29 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 1.176e-05/0.1843, allocations: 7.75 kB / 444.2 MB, free: 43.29 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.144e-05/0.1843, allocations: 13.11 kB / 444.2 MB, free: 43.29 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001018/0.1844, allocations: 41.8 kB / 444.3 MB, free: 43.29 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.1844, allocations: 0 / 444.3 MB, free: 43.29 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1844, allocations: 0 / 444.3 MB, free: 43.29 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.16e-06/0.1844, allocations: 2.594 kB / 444.3 MB, free: 43.29 MB / 410.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.0002917/0.1847, allocations: 277.7 kB / 444.5 MB, free: 43.03 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.913e-05/0.1847, allocations: 8.781 kB / 444.6 MB, free: 43.03 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.093e-05/0.1847, allocations: 36.28 kB / 444.6 MB, free: 42.99 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001005/0.1848, allocations: 12.56 kB / 444.6 MB, free: 42.99 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001446/0.185, allocations: 122.8 kB / 444.7 MB, free: 42.85 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.673e-06/0.185, allocations: 384 / 444.7 MB, free: 42.85 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.256e-06/0.185, allocations: 11 kB / 444.7 MB, free: 42.85 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001112/0.1851, allocations: 92.95 kB / 444.8 MB, free: 42.77 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.182e-06/0.1851, allocations: 192 / 444.8 MB, free: 42.77 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.345e-06/0.1851, allocations: 4.125 kB / 444.8 MB, free: 42.77 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/0.1851, allocations: 0 / 444.8 MB, free: 42.77 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.037e-05/0.1852, allocations: 19.94 kB / 444.8 MB, free: 42.77 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002235/0.1854, allocations: 229.3 kB / 445.1 MB, free: 42.54 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.245e-05/0.1855, allocations: 30.23 kB / 445.1 MB, free: 42.51 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.473e-05/0.1855, allocations: 18.61 kB / 445.1 MB, free: 42.5 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.294e-05/0.1855, allocations: 6.891 kB / 445.1 MB, free: 42.5 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.333e-05/0.1855, allocations: 33.72 kB / 445.2 MB, free: 42.46 MB / 410.7 MB Notification: Performance of pre-optimization done (n=2): time 9.21e-07/0.1855, allocations: 0 / 445.2 MB, free: 42.46 MB / 410.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001594/0.1857, allocations: 65.33 kB / 445.2 MB, free: 42.42 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.397e-05/0.1857, allocations: 79.95 kB / 445.3 MB, free: 42.33 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.298e-05/0.1857, allocations: 114.4 kB / 445.4 MB, free: 42.23 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.043e-06/0.1857, allocations: 25.7 kB / 445.4 MB, free: 42.2 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.25e-05/0.1858, allocations: 90.66 kB / 445.5 MB, free: 42.12 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.308e-05/0.1858, allocations: 7.016 kB / 445.5 MB, free: 42.11 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.269e-05/0.1858, allocations: 16.06 kB / 445.5 MB, free: 42.1 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.46e-05/0.1858, allocations: 317.2 kB / 445.9 MB, free: 41.79 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.549e-05/0.1859, allocations: 12.2 kB / 445.9 MB, free: 41.79 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.95e-05/0.1859, allocations: 48.3 kB / 445.9 MB, free: 41.74 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.328e-05/0.1859, allocations: 30.23 kB / 445.9 MB, free: 41.73 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.1859, allocations: 6.25 kB / 446 MB, free: 41.73 MB / 410.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 6.482e-05/0.186, allocations: 66.66 kB / 446 MB, free: 41.69 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.145e-05/0.186, allocations: 5.875 kB / 446 MB, free: 41.69 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.186, allocations: 0 / 446 MB, free: 41.69 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.139e-05/0.186, allocations: 0 / 446 MB, free: 41.69 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.949e-05/0.1861, allocations: 2.844 kB / 446 MB, free: 41.69 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.369e-06/0.1861, allocations: 160 / 446 MB, free: 41.69 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.666e-05/0.1861, allocations: 12.98 kB / 446 MB, free: 41.69 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.531e-06/0.1861, allocations: 0 / 446 MB, free: 41.69 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: 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 4.094e-05/0.1862, allocations: 119 kB / 446.2 MB, free: 41.57 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.272e-05/0.1862, allocations: 7.891 kB / 446.2 MB, free: 41.57 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.035e-05/0.1862, allocations: 10.56 kB / 446.2 MB, free: 41.56 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.383e-06/0.1862, allocations: 3.938 kB / 446.2 MB, free: 41.56 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.1862, allocations: 0.8438 kB / 446.2 MB, free: 41.56 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.245e-06/0.1862, allocations: 0 / 446.2 MB, free: 41.56 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.614e-05/0.1863, allocations: 134.5 kB / 446.3 MB, free: 41.41 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.12e-07/0.1863, allocations: 3.938 kB / 446.3 MB, free: 41.4 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.505e-05/0.1863, allocations: 6.406 kB / 446.3 MB, free: 41.4 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.232e-06/0.1863, allocations: 0 / 446.3 MB, free: 41.4 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.802e-06/0.1863, allocations: 0 / 446.3 MB, free: 41.4 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.1863, allocations: 10.48 kB / 446.3 MB, free: 41.39 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.1863, allocations: 0 / 446.3 MB, free: 41.39 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.109e-05/0.1864, allocations: 147.6 kB / 446.5 MB, free: 41.27 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.68e-06/0.1864, allocations: 7.891 kB / 446.5 MB, free: 41.26 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.293e-05/0.1864, allocations: 2.625 kB / 446.5 MB, free: 41.26 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.03e-05/0.1864, allocations: 12.75 kB / 446.5 MB, free: 41.25 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.372e-05/0.1865, allocations: 9.484 kB / 446.5 MB, free: 41.25 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.374e-06/0.1865, allocations: 0 / 446.5 MB, free: 41.25 MB / 410.7 MB Notification: Performance of sorting global known variables: time 1.79e-05/0.1865, allocations: 91.06 kB / 446.6 MB, free: 41.18 MB / 410.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1865, allocations: 0 / 446.6 MB, free: 41.18 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001518/0.1866, allocations: 5.875 kB / 446.6 MB, free: 41.18 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 (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.0001638/0.1868, allocations: 0.6814 MB / 447.3 MB, free: 40.52 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 9.273e-05/0.1869, allocations: 25 kB / 447.3 MB, free: 40.52 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.062e-06/0.1869, allocations: 6.125 kB / 447.3 MB, free: 40.51 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 2.424e-05/0.1869, allocations: 14.02 kB / 447.3 MB, free: 40.51 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001576/0.1871, allocations: 6.781 kB / 447.3 MB, free: 40.51 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006165/0.1877, allocations: 1.253 MB / 448.6 MB, free: 39.36 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.142e-05/0.1877, allocations: 70.28 kB / 448.7 MB, free: 39.29 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 2.725e-05/0.1877, allocations: 6.688 kB / 448.7 MB, free: 39.28 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.682e-05/0.1878, allocations: 16.31 kB / 448.7 MB, free: 39.28 MB / 410.7 MB Notification: Performance of SimCode: time 4.91e-07/0.1878, allocations: 2.625 kB / 448.7 MB, free: 39.28 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01536/0.2031, allocations: 2.229 MB / 450.9 MB, free: 38.4 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.128/7.331, allocations: 7.438 kB / 450.9 MB, free: 38.39 MB / 410.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0_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_4_1_0_ModelicaTest_Blocks_Hysteresis.fmu > ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_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_4.1.0_ModelicaTest.Blocks.Hysteresis_res.csv. Warning: Get data of variable hysteresis.y from file ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.476488418877125]