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.0008168/0.0008168, allocations: 79.7 kB / 20.67 MB, free: 3.895 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.0009463/0.0009463, allocations: 170 kB / 23.95 MB, free: 0.6172 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.8975/0.8975, allocations: 177.1 MB / 204.2 MB, free: 5.738 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.2454/0.2454, allocations: 34.25 MB / 294.9 MB, free: 0.7344 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.623e-06/1.623e-06, allocations: 0 / 442.2 MB, free: 1.703 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.193e-05/2.355e-05, allocations: 5.094 kB / 442.2 MB, free: 1.699 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.001972/0.001995, allocations: 1.463 MB / 443.6 MB, free: 228 kB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.172/0.174, allocations: 450.7 kB / 444.1 MB, free: 43.25 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.797e-05/0.1741, allocations: 3 kB / 444.1 MB, free: 43.25 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 2.628e-05/0.1741, allocations: 0 / 444.1 MB, free: 43.25 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 4.107e-05/0.1741, allocations: 9.188 kB / 444.1 MB, free: 43.25 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002119/0.1743, allocations: 30.8 kB / 444.1 MB, free: 43.25 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 8.746e-05/0.1744, allocations: 41.88 kB / 444.1 MB, free: 43.25 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.157e-05/0.1745, allocations: 6.875 kB / 444.2 MB, free: 43.25 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001082/0.1746, allocations: 34.53 kB / 444.2 MB, free: 43.25 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.417e-05/0.1747, allocations: 11.28 kB / 444.2 MB, free: 43.25 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 1.432e-05/0.1747, allocations: 2.75 kB / 444.2 MB, free: 43.25 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.559e-05/0.1747, allocations: 9.906 kB / 444.2 MB, free: 43.25 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 1.08e-05/0.1747, allocations: 8.984 kB / 444.2 MB, free: 43.25 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.894e-05/0.1747, allocations: 12.75 kB / 444.2 MB, free: 43.25 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001079/0.1748, allocations: 37.31 kB / 444.3 MB, free: 43.25 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.1749, allocations: 3.234 kB / 444.3 MB, free: 43.25 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1749, allocations: 0 / 444.3 MB, free: 43.25 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.2e-06/0.1749, allocations: 0 / 444.3 MB, free: 43.25 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.0003284/0.1752, allocations: 276.4 kB / 444.5 MB, free: 42.98 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.922e-05/0.1752, allocations: 14.42 kB / 444.6 MB, free: 42.98 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.188e-05/0.1752, allocations: 32.25 kB / 444.6 MB, free: 42.95 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001066/0.1754, allocations: 14.53 kB / 444.6 MB, free: 42.95 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001496/0.1755, allocations: 121.2 kB / 444.7 MB, free: 42.81 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.506e-06/0.1755, allocations: 7.781 kB / 444.7 MB, free: 42.81 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.564e-06/0.1755, allocations: 1.094 kB / 444.7 MB, free: 42.81 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001151/0.1756, allocations: 94.61 kB / 444.8 MB, free: 42.73 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.121e-06/0.1756, allocations: 3.938 kB / 444.8 MB, free: 42.73 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.107e-06/0.1756, allocations: 4.125 kB / 444.8 MB, free: 42.72 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.396e-06/0.1757, allocations: 0 / 444.8 MB, free: 42.72 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.041e-05/0.1757, allocations: 18.47 kB / 444.8 MB, free: 42.72 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000222/0.1759, allocations: 226.5 kB / 445.1 MB, free: 42.5 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.487e-05/0.176, allocations: 30.45 kB / 445.1 MB, free: 42.47 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.958e-05/0.176, allocations: 20.33 kB / 445.1 MB, free: 42.46 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.491e-05/0.176, allocations: 4.125 kB / 445.1 MB, free: 42.46 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.387e-05/0.176, allocations: 30.56 kB / 445.1 MB, free: 42.42 MB / 410.7 MB Notification: Performance of pre-optimization done (n=2): time 7.92e-07/0.176, allocations: 0 / 445.1 MB, free: 42.42 MB / 410.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001544/0.1762, allocations: 71.64 kB / 445.2 MB, free: 42.38 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.287e-05/0.1762, allocations: 81.05 kB / 445.3 MB, free: 42.29 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.181e-05/0.1763, allocations: 114.1 kB / 445.4 MB, free: 42.19 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.334e-06/0.1763, allocations: 28.39 kB / 445.4 MB, free: 42.16 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.007e-05/0.1763, allocations: 84.2 kB / 445.5 MB, free: 42.07 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.384e-05/0.1763, allocations: 10.39 kB / 445.5 MB, free: 42.07 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.376e-05/0.1763, allocations: 15.28 kB / 445.5 MB, free: 42.05 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.377e-05/0.1763, allocations: 316.7 kB / 445.9 MB, free: 41.74 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.45e-05/0.1764, allocations: 12.33 kB / 445.9 MB, free: 41.74 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.964e-05/0.1764, allocations: 53.98 kB / 445.9 MB, free: 41.7 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.223e-05/0.1764, allocations: 29.2 kB / 445.9 MB, free: 41.69 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.1764, allocations: 0 / 445.9 MB, free: 41.69 MB / 410.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 6.556e-05/0.1765, allocations: 60.36 kB / 446 MB, free: 41.65 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.112e-05/0.1765, allocations: 6.562 kB / 446 MB, free: 41.65 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.108e-06/0.1765, allocations: 3.188 kB / 446 MB, free: 41.65 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.066e-05/0.1765, allocations: 160 / 446 MB, free: 41.65 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.959e-05/0.1766, allocations: 9.781 kB / 446 MB, free: 41.64 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.857e-06/0.1766, allocations: 0 / 446 MB, free: 41.64 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.588e-05/0.1766, allocations: 12.56 kB / 446 MB, free: 41.64 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.029e-06/0.1766, allocations: 0 / 446 MB, free: 41.64 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 3.731e-05/0.1767, allocations: 109.5 kB / 446.1 MB, free: 41.53 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.266e-05/0.1767, allocations: 10.42 kB / 446.2 MB, free: 41.52 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.878e-05/0.1767, allocations: 17.97 kB / 446.2 MB, free: 41.52 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.1767, allocations: 0 / 446.2 MB, free: 41.52 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.1767, allocations: 0.8438 kB / 446.2 MB, free: 41.52 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.013e-06/0.1767, allocations: 4 kB / 446.2 MB, free: 41.51 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.417e-05/0.1768, allocations: 130.6 kB / 446.3 MB, free: 41.36 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.1768, allocations: 3.938 kB / 446.3 MB, free: 41.36 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.461e-05/0.1768, allocations: 9.625 kB / 446.3 MB, free: 41.36 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.1768, allocations: 0 / 446.3 MB, free: 41.36 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.261e-06/0.1768, allocations: 2.969 kB / 446.3 MB, free: 41.36 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.52e-07/0.1768, allocations: 0 / 446.3 MB, free: 41.36 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.1768, allocations: 0 / 446.3 MB, free: 41.36 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.255e-05/0.1769, allocations: 150.6 kB / 446.5 MB, free: 41.22 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.142e-06/0.1769, allocations: 7.891 kB / 446.5 MB, free: 41.21 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.221e-05/0.1769, allocations: 6.656 kB / 446.5 MB, free: 41.21 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.939e-05/0.1769, allocations: 8.891 kB / 446.5 MB, free: 41.21 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.355e-05/0.177, allocations: 9.016 kB / 446.5 MB, free: 41.21 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.645e-06/0.177, allocations: 0 / 446.5 MB, free: 41.21 MB / 410.7 MB Notification: Performance of sorting global known variables: time 1.772e-05/0.177, allocations: 90.47 kB / 446.6 MB, free: 41.14 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.177, allocations: 0 / 446.6 MB, free: 41.14 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001398/0.1771, allocations: 5.281 kB / 446.6 MB, free: 41.14 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.0001601/0.1773, allocations: 0.6882 MB / 447.3 MB, free: 40.47 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 9.019e-05/0.1774, allocations: 26.41 kB / 447.3 MB, free: 40.47 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.332e-06/0.1774, allocations: 0 / 447.3 MB, free: 40.47 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 2.445e-05/0.1774, allocations: 14.97 kB / 447.3 MB, free: 40.47 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001508/0.1775, allocations: 0.6562 kB / 447.3 MB, free: 40.47 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006428/0.1782, allocations: 1.266 MB / 448.6 MB, free: 39.32 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.329e-05/0.1782, allocations: 70.86 kB / 448.7 MB, free: 39.24 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 2.744e-05/0.1783, allocations: 2.656 kB / 448.7 MB, free: 39.24 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.052e-05/0.1783, allocations: 22.16 kB / 448.7 MB, free: 39.23 MB / 410.7 MB Notification: Performance of SimCode: time 3.81e-07/0.1783, allocations: 0 / 448.7 MB, free: 39.23 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0133/0.1916, allocations: 2.23 MB / 450.9 MB, free: 38.35 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.536/6.728, allocations: 2.844 kB / 450.9 MB, free: 38.35 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Blocks_Hysteresis_fmu --startTime=0 --stopTime=3 --stepSize=0.000598325 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.668840628117323]