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.0008835/0.0008835, allocations: 80.53 kB / 19.92 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.001063/0.001063, 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.9256/0.9256, allocations: 158.6 MB / 185 MB, free: 3.051 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.1318/0.1318, allocations: 32.36 MB / 269.6 MB, free: 14.98 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 3.447e-06/3.447e-06, allocations: 7.938 kB / 406.8 MB, free: 2.27 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.8e-05/2.145e-05, allocations: 2.281 kB / 406.8 MB, free: 2.266 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002099/0.00212, allocations: 1.452 MB / 408.3 MB, free: 0.8086 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006903/0.002811, allocations: 431.9 kB / 408.7 MB, free: 388 kB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.366e-05/0.002854, allocations: 0 / 408.7 MB, free: 388 kB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 3.118e-05/0.002885, allocations: 7.922 kB / 408.7 MB, free: 380 kB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 4.326e-05/0.002929, allocations: 0 / 408.7 MB, free: 380 kB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002162/0.003145, allocations: 19.91 kB / 408.7 MB, free: 360 kB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 7.967e-05/0.003225, allocations: 31.86 kB / 408.8 MB, free: 328 kB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001019/0.003327, allocations: 8 kB / 408.8 MB, free: 320 kB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001133/0.00344, allocations: 23.91 kB / 408.8 MB, free: 296 kB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.351e-05/0.003493, allocations: 15.98 kB / 408.8 MB, free: 280 kB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.263e-05/0.003516, allocations: 4 kB / 408.8 MB, free: 276 kB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.506e-06/0.003524, allocations: 4 kB / 408.8 MB, free: 272 kB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.852e-05/0.003543, allocations: 11.92 kB / 408.8 MB, free: 260 kB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.015e-05/0.003563, allocations: 4 kB / 408.8 MB, free: 256 kB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 9.081e-05/0.003654, allocations: 39.88 kB / 408.9 MB, free: 216 kB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.114e-06/0.003656, allocations: 0 / 408.9 MB, free: 216 kB / 378.7 MB Notification: Performance of FrontEnd: time 1.313e-06/0.003657, allocations: 0 / 408.9 MB, free: 216 kB / 378.7 MB Notification: Performance of Transformations before backend: time 4.389e-06/0.003662, allocations: 0 / 408.9 MB, free: 216 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.0003581/0.00402, allocations: 274.2 kB / 409.1 MB, free: 15.91 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.059e-05/0.00406, allocations: 8.031 kB / 409.1 MB, free: 15.91 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.946e-05/0.00409, allocations: 38.69 kB / 409.2 MB, free: 15.86 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.539e-05/0.004115, allocations: 8.875 kB / 409.2 MB, free: 15.85 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.049e-05/0.004206, allocations: 109.8 kB / 409.3 MB, free: 15.72 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.939e-06/0.004216, allocations: 4.375 kB / 409.3 MB, free: 15.71 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.398e-06/0.004225, allocations: 8.359 kB / 409.3 MB, free: 15.71 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001462/0.004371, allocations: 77.67 kB / 409.4 MB, free: 15.61 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.622e-06/0.004378, allocations: 192 / 409.4 MB, free: 15.61 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.408e-06/0.004387, allocations: 8.062 kB / 409.4 MB, free: 15.61 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.461e-06/0.004393, allocations: 4 kB / 409.4 MB, free: 15.6 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.376e-05/0.004447, allocations: 15.98 kB / 409.4 MB, free: 15.59 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003193/0.004766, allocations: 232 kB / 409.6 MB, free: 15.32 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.558e-05/0.004831, allocations: 34.55 kB / 409.7 MB, free: 15.27 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.073e-05/0.004862, allocations: 20.86 kB / 409.7 MB, free: 15.25 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.562e-05/0.004878, allocations: 0 / 409.7 MB, free: 15.25 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.163e-05/0.004899, allocations: 30.56 kB / 409.7 MB, free: 15.21 MB / 394.7 MB Notification: Performance of pre-optimization done (n=2): time 9.62e-07/0.0049, allocations: 0 / 409.7 MB, free: 15.21 MB / 394.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001825/0.005083, allocations: 73.69 kB / 409.8 MB, free: 15.13 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.058e-05/0.005123, allocations: 81.11 kB / 409.9 MB, free: 15.04 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.488e-05/0.005188, allocations: 105.8 kB / 410 MB, free: 14.92 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.287e-05/0.005201, allocations: 29.7 kB / 410 MB, free: 14.89 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.573e-05/0.005247, allocations: 88.12 kB / 410.1 MB, free: 14.8 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.856e-05/0.005265, allocations: 7.891 kB / 410.1 MB, free: 14.79 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.96e-05/0.005295, allocations: 17.72 kB / 410.1 MB, free: 14.77 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.842e-05/0.005383, allocations: 318.8 kB / 410.4 MB, free: 14.45 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.916e-05/0.005413, allocations: 8 kB / 410.4 MB, free: 14.44 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.16e-05/0.005454, allocations: 55.41 kB / 410.5 MB, free: 14.37 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.045e-05/0.005505, allocations: 32.81 kB / 410.5 MB, free: 14.34 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.005506, allocations: 0 / 410.5 MB, free: 14.34 MB / 394.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 8.888e-05/0.005595, allocations: 61.62 kB / 410.6 MB, free: 14.27 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.689e-05/0.005612, allocations: 7.984 kB / 410.6 MB, free: 14.26 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.005619, allocations: 0 / 410.6 MB, free: 14.26 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.271e-05/0.005632, allocations: 0 / 410.6 MB, free: 14.26 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.531e-05/0.005697, allocations: 8 kB / 410.6 MB, free: 14.25 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.61e-06/0.005702, allocations: 0 / 410.6 MB, free: 14.25 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.863e-05/0.005731, allocations: 7.984 kB / 410.6 MB, free: 14.25 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.522e-06/0.005738, allocations: 8 kB / 410.6 MB, free: 14.24 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.809e-05/0.005806, allocations: 109.8 kB / 410.7 MB, free: 14.12 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.931e-05/0.005825, allocations: 15.83 kB / 410.7 MB, free: 14.11 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.553e-05/0.005851, allocations: 3.625 kB / 410.7 MB, free: 14.1 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.005853, allocations: 0 / 410.7 MB, free: 14.1 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.85e-06/0.005858, allocations: 0 / 410.7 MB, free: 14.1 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.529e-06/0.005862, allocations: 7.984 kB / 410.7 MB, free: 14.09 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001129/0.005975, allocations: 124.8 kB / 410.9 MB, free: 13.93 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.005977, allocations: 3.938 kB / 410.9 MB, free: 13.93 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.101e-05/0.005998, allocations: 7.938 kB / 410.9 MB, free: 13.92 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.092e-06/0.005999, allocations: 4 kB / 410.9 MB, free: 13.91 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.344e-06/0.006007, allocations: 0 / 410.9 MB, free: 13.91 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.006008, allocations: 320 / 410.9 MB, free: 13.91 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.006011, allocations: 4 kB / 410.9 MB, free: 13.91 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001286/0.00614, allocations: 151.5 kB / 411 MB, free: 13.75 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.806e-06/0.006148, allocations: 7.891 kB / 411 MB, free: 13.74 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.345e-05/0.006162, allocations: 4 kB / 411 MB, free: 13.73 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.141e-05/0.006203, allocations: 7.984 kB / 411.1 MB, free: 13.73 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.156e-05/0.006245, allocations: 7.984 kB / 411.1 MB, free: 13.72 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.686e-06/0.006248, allocations: 4.031 kB / 411.1 MB, free: 13.71 MB / 394.7 MB Notification: Performance of sorting global known variables: time 3.179e-05/0.00628, allocations: 99.23 kB / 411.2 MB, free: 13.62 MB / 394.7 MB Notification: Performance of sort global known variables: time 6e-08/0.00628, allocations: 0 / 411.2 MB, free: 13.62 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0001424/0.006423, allocations: 4 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.0002772/0.0067, allocations: 0.6811 MB / 411.8 MB, free: 12.91 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.000105/0.006805, allocations: 27.98 kB / 411.9 MB, free: 12.88 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.192e-06/0.006806, allocations: 0 / 411.9 MB, free: 12.88 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 2.48e-05/0.006831, allocations: 15.97 kB / 411.9 MB, free: 12.86 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001535/0.006985, allocations: 3.984 kB / 411.9 MB, free: 12.86 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003521/0.007337, allocations: 150.4 kB / 412 MB, free: 12.67 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.333e-05/0.00738, allocations: 63.34 kB / 412.1 MB, free: 12.59 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 2.566e-05/0.007406, allocations: 4.219 kB / 412.1 MB, free: 12.59 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.163e-05/0.007447, allocations: 20.48 kB / 412.1 MB, free: 12.57 MB / 394.7 MB Notification: Performance of SimCode: time 4.51e-07/0.007448, allocations: 0 / 412.1 MB, free: 12.57 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01454/0.02199, allocations: 2.196 MB / 414.3 MB, free: 10.36 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.395/6.417, allocations: 7.953 kB / 414.3 MB, free: 10.35 MB / 394.7 MB " [Timeout remaining time 654] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_Hysteresis_fmu --startTime=0 --stopTime=3 --stepSize=0.000598325 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.454128413461149]