Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001119/0.001119, allocations: 106.2 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001222/0.001222, allocations: 192 kB / 18.56 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.355/1.355, allocations: 222.9 MB / 242.3 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2183/0.2183, allocations: 44.18 MB / 336.6 MB, free: 2.719 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001285/0.001285, allocations: 61.41 kB / 408.5 MB, free: 27.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.1073, allocations: 60.82 MB / 469.4 MB, free: 14.26 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.003412/0.1108, allocations: 1.441 MB / 470.8 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008403/0.1117, allocations: 415 kB / 471.2 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.839e-05/0.1118, allocations: 0 / 471.2 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.739e-05/0.1118, allocations: 0 / 471.2 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.727e-05/0.1119, allocations: 7.922 kB / 471.2 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002115/0.1121, allocations: 23.91 kB / 471.2 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 8.626e-05/0.1122, allocations: 31.92 kB / 471.3 MB, free: 12.33 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001112/0.1124, allocations: 4 kB / 471.3 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001289/0.1125, allocations: 23.86 kB / 471.3 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.463e-05/0.1126, allocations: 19.86 kB / 471.3 MB, free: 12.28 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.775e-05/0.1126, allocations: 4 kB / 471.3 MB, free: 12.28 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.366e-05/0.1126, allocations: 4 kB / 471.3 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.103e-05/0.1126, allocations: 3.984 kB / 471.3 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.228e-05/0.1127, allocations: 19.92 kB / 471.3 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.95e-05/0.1128, allocations: 31.91 kB / 471.4 MB, free: 12.22 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/0.1128, allocations: 0 / 471.4 MB, free: 12.22 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.1128, allocations: 0 / 471.4 MB, free: 12.22 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.041e-06/0.1128, allocations: 0 / 471.4 MB, free: 12.22 MB / 350.1 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.000445/0.1133, allocations: 343.7 kB / 471.7 MB, free: 11.84 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.703e-05/0.1133, allocations: 12.03 kB / 471.7 MB, free: 11.82 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.416e-05/0.1134, allocations: 34.75 kB / 471.8 MB, free: 11.78 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.068e-05/0.1134, allocations: 8.844 kB / 471.8 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000111/0.1135, allocations: 172.3 kB / 471.9 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.584e-05/0.1135, allocations: 4.375 kB / 471.9 MB, free: 11.56 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.248e-05/0.1136, allocations: 8.312 kB / 471.9 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000161/0.1137, allocations: 63.45 kB / 472 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.614e-06/0.1137, allocations: 0 / 472 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.758e-06/0.1138, allocations: 4 kB / 472 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.689e-06/0.1138, allocations: 0 / 472 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.285e-05/0.1139, allocations: 19.98 kB / 472 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003997/0.1143, allocations: 264.8 kB / 472.3 MB, free: 11.15 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.819e-05/0.1144, allocations: 30.56 kB / 472.3 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.34e-05/0.1144, allocations: 20.91 kB / 472.3 MB, free: 11.09 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.865e-05/0.1145, allocations: 3.938 kB / 472.3 MB, free: 11.08 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.522e-05/0.1145, allocations: 34.56 kB / 472.4 MB, free: 11.04 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 1.303e-06/0.1145, allocations: 0 / 472.4 MB, free: 11.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002532/0.1148, allocations: 69.66 kB / 472.4 MB, free: 10.96 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.237e-05/0.1148, allocations: 77.11 kB / 472.5 MB, free: 10.87 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.142e-05/0.1149, allocations: 106.1 kB / 472.6 MB, free: 10.76 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.8e-05/0.1149, allocations: 29.7 kB / 472.6 MB, free: 10.72 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.579e-05/0.115, allocations: 84.14 kB / 472.7 MB, free: 10.64 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.78e-05/0.115, allocations: 8.031 kB / 472.7 MB, free: 10.63 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.846e-05/0.1151, allocations: 17.72 kB / 472.8 MB, free: 10.61 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001023/0.1152, allocations: 322.8 kB / 473.1 MB, free: 10.28 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.085e-05/0.1152, allocations: 8 kB / 473.1 MB, free: 10.27 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.174e-05/0.1153, allocations: 29.64 kB / 473.1 MB, free: 10.24 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.122e-05/0.1154, allocations: 24.84 kB / 473.1 MB, free: 10.21 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.1154, allocations: 0 / 473.1 MB, free: 10.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001322/0.1155, allocations: 65.7 kB / 473.2 MB, free: 10.14 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.391e-05/0.1156, allocations: 4 kB / 473.2 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.628e-06/0.1156, allocations: 3.938 kB / 473.2 MB, free: 10.13 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.244e-05/0.1156, allocations: 4 kB / 473.2 MB, free: 10.13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.645e-05/0.1157, allocations: 0 / 473.2 MB, free: 10.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.101e-05/0.1157, allocations: 8.062 kB / 473.2 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.908e-05/0.1157, allocations: 11.92 kB / 473.2 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.072e-06/0.1157, allocations: 0 / 473.2 MB, free: 10.11 MB / 350.1 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 7.39e-05/0.1158, allocations: 117.8 kB / 473.3 MB, free: 9.984 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.791e-05/0.1159, allocations: 3.906 kB / 473.3 MB, free: 9.98 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.694e-05/0.1159, allocations: 19.47 kB / 473.4 MB, free: 9.961 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.1159, allocations: 0 / 473.4 MB, free: 9.961 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.1159, allocations: 3.938 kB / 473.4 MB, free: 9.957 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.077e-06/0.1159, allocations: 4 kB / 473.4 MB, free: 9.953 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001484/0.1161, allocations: 161.6 kB / 473.5 MB, free: 9.746 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.1161, allocations: 4 kB / 473.5 MB, free: 9.742 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.859e-05/0.1161, allocations: 0 / 473.5 MB, free: 9.742 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.1161, allocations: 0 / 473.5 MB, free: 9.742 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.712e-06/0.1161, allocations: 8 kB / 473.5 MB, free: 9.734 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.1162, allocations: 0 / 473.5 MB, free: 9.734 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.494e-06/0.1162, allocations: 3.984 kB / 473.5 MB, free: 9.73 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001691/0.1163, allocations: 147.5 kB / 473.7 MB, free: 9.57 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.383e-05/0.1164, allocations: 84.95 kB / 473.8 MB, free: 9.469 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.818e-05/0.1164, allocations: 4 kB / 473.8 MB, free: 9.465 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.565e-05/0.1165, allocations: 12.02 kB / 473.8 MB, free: 9.453 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.6e-05/0.1165, allocations: 11.98 kB / 473.8 MB, free: 9.441 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.067e-06/0.1166, allocations: 0 / 473.8 MB, free: 9.441 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.13e-05/0.1166, allocations: 87.27 kB / 473.9 MB, free: 9.355 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1166, allocations: 0 / 473.9 MB, free: 9.355 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002173/0.1168, allocations: 8 kB / 473.9 MB, free: 9.348 MB / 350.1 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.0003831/0.1172, allocations: 0.685 MB / 474.6 MB, free: 8.633 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001488/0.1174, allocations: 27.92 kB / 474.6 MB, free: 8.605 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.1174, allocations: 0 / 474.6 MB, free: 8.605 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.941e-05/0.1174, allocations: 12 kB / 474.6 MB, free: 8.594 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002088/0.1177, allocations: 7.984 kB / 474.6 MB, free: 8.586 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004274/0.1181, allocations: 156.3 kB / 474.8 MB, free: 8.395 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002012/0.1183, allocations: 0.6806 MB / 475.5 MB, free: 7.688 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.849e-05/0.1183, allocations: 4 kB / 475.5 MB, free: 7.684 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.961e-05/0.1184, allocations: 15.42 kB / 475.5 MB, free: 7.668 MB / 350.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1184, allocations: 3.938 kB / 475.5 MB, free: 7.664 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01743/0.1358, allocations: 1.476 MB / 477 MB, free: 6.238 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.707/7.843, allocations: 5.094 kB / 477 MB, free: 6.234 MB / 350.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_Hysteresis_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_Hysteresis.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches