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.0008259/0.0008259, allocations: 96.2 kB / 17.35 MB, free: 6.371 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.0009103/0.0009104, allocations: 172.2 kB / 18.25 MB, free: 5.523 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.201/1.201, allocations: 223.3 MB / 242.3 MB, free: 216 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1667/0.1667, allocations: 44.25 MB / 337.7 MB, free: 2.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002694/0.0002694, allocations: 8 kB / 410.4 MB, free: 27.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09077/0.09105, allocations: 61.92 MB / 472.3 MB, free: 13.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.001391/0.09248, allocations: 1.166 MB / 473.5 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005632/0.09307, allocations: 407.2 kB / 473.9 MB, free: 11.69 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.656e-05/0.09312, allocations: 0 / 473.9 MB, free: 11.69 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.799e-05/0.09315, allocations: 3.984 kB / 473.9 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.328e-05/0.0932, allocations: 7.938 kB / 473.9 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001422/0.09335, allocations: 8 kB / 473.9 MB, free: 11.67 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.893e-05/0.09341, allocations: 31.86 kB / 474 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.863e-05/0.0935, allocations: 15.97 kB / 474 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.354e-05/0.09359, allocations: 11.94 kB / 474 MB, free: 11.61 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.989e-05/0.09366, allocations: 15.92 kB / 474 MB, free: 11.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.605e-05/0.09368, allocations: 0 / 474 MB, free: 11.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.716e-06/0.0937, allocations: 4 kB / 474 MB, free: 11.59 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.631e-05/0.09372, allocations: 7.984 kB / 474 MB, free: 11.58 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.956e-05/0.09376, allocations: 41.62 kB / 474.1 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 7.12e-05/0.09384, allocations: 31.89 kB / 474.1 MB, free: 11.5 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.09385, allocations: 0 / 474.1 MB, free: 11.5 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.09386, allocations: 0 / 474.1 MB, free: 11.5 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.346e-06/0.09386, allocations: 0 / 474.1 MB, free: 11.5 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.0003757/0.09424, allocations: 347.7 kB / 474.4 MB, free: 11.12 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.52e-05/0.09429, allocations: 12.03 kB / 474.4 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.281e-05/0.09433, allocations: 30.75 kB / 474.5 MB, free: 11.07 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.714e-05/0.09436, allocations: 4.938 kB / 474.5 MB, free: 11.06 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001013/0.09447, allocations: 172.2 kB / 474.6 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.387e-06/0.09448, allocations: 4.375 kB / 474.6 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.169e-05/0.0945, allocations: 8.297 kB / 474.7 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001465/0.09465, allocations: 63.52 kB / 474.7 MB, free: 10.77 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.101e-06/0.09467, allocations: 0 / 474.7 MB, free: 10.77 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.136e-05/0.09469, allocations: 8 kB / 474.7 MB, free: 10.76 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.606e-06/0.09469, allocations: 0 / 474.7 MB, free: 10.76 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.905e-05/0.09479, allocations: 23.98 kB / 474.7 MB, free: 10.74 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003476/0.09514, allocations: 268.8 kB / 475 MB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.178e-05/0.09524, allocations: 38.56 kB / 475.1 MB, free: 10.38 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.768e-05/0.09529, allocations: 16.92 kB / 475.1 MB, free: 10.36 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.506e-05/0.09531, allocations: 3.984 kB / 475.1 MB, free: 10.36 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.509e-05/0.09534, allocations: 34.56 kB / 475.1 MB, free: 10.31 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 1.092e-06/0.09535, allocations: 0 / 475.1 MB, free: 10.31 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002235/0.09558, allocations: 77.52 kB / 475.2 MB, free: 10.23 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.334e-05/0.09563, allocations: 81.11 kB / 475.3 MB, free: 10.13 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.676e-05/0.09572, allocations: 105.8 kB / 475.4 MB, free: 10.02 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.452e-05/0.09574, allocations: 29.64 kB / 475.4 MB, free: 9.984 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.18e-05/0.09578, allocations: 92.12 kB / 475.5 MB, free: 9.891 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.617e-05/0.09581, allocations: 3.906 kB / 475.5 MB, free: 9.887 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.513e-05/0.09584, allocations: 17.84 kB / 475.5 MB, free: 9.863 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.215e-05/0.09593, allocations: 318.8 kB / 475.8 MB, free: 9.543 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.882e-05/0.09599, allocations: 15.98 kB / 475.8 MB, free: 9.527 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.051e-05/0.09604, allocations: 25.7 kB / 475.9 MB, free: 9.496 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.894e-05/0.09613, allocations: 28.88 kB / 475.9 MB, free: 9.465 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.09614, allocations: 4 kB / 475.9 MB, free: 9.461 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001222/0.09627, allocations: 61.62 kB / 475.9 MB, free: 9.395 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.635e-05/0.09629, allocations: 4 kB / 476 MB, free: 9.391 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.567e-06/0.0963, allocations: 0 / 476 MB, free: 9.391 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.278e-06/0.09632, allocations: 0 / 476 MB, free: 9.391 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.404e-05/0.09639, allocations: 11.98 kB / 476 MB, free: 9.379 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.108e-06/0.0964, allocations: 0 / 476 MB, free: 9.379 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.118e-05/0.09646, allocations: 19.98 kB / 476 MB, free: 9.359 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.33e-06/0.09648, allocations: 0 / 476 MB, free: 9.359 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 6.96e-05/0.09655, allocations: 113.8 kB / 476.1 MB, free: 9.238 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.496e-05/0.09658, allocations: 3.906 kB / 476.1 MB, free: 9.234 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.328e-05/0.09661, allocations: 15.48 kB / 476.1 MB, free: 9.219 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.527e-06/0.09662, allocations: 0 / 476.1 MB, free: 9.219 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.09662, allocations: 3.938 kB / 476.1 MB, free: 9.215 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.224e-06/0.09663, allocations: 0 / 476.1 MB, free: 9.215 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001422/0.09678, allocations: 165.6 kB / 476.3 MB, free: 9.004 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.09679, allocations: 4 kB / 476.3 MB, free: 9 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.086e-05/0.09683, allocations: 11.92 kB / 476.3 MB, free: 8.988 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.09684, allocations: 144 / 476.3 MB, free: 8.988 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.111e-06/0.09685, allocations: 0 / 476.3 MB, free: 8.988 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.714e-06/0.09686, allocations: 0 / 476.3 MB, free: 8.988 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.09686, allocations: 3.984 kB / 476.3 MB, free: 8.984 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001609/0.09703, allocations: 159.5 kB / 476.5 MB, free: 8.812 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.875e-05/0.09707, allocations: 81.11 kB / 476.5 MB, free: 8.715 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.975e-05/0.09709, allocations: 0 / 476.5 MB, free: 8.715 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.854e-05/0.09718, allocations: 11.98 kB / 476.5 MB, free: 8.703 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.756e-05/0.09723, allocations: 7.984 kB / 476.6 MB, free: 8.695 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.908e-06/0.09724, allocations: 0 / 476.6 MB, free: 8.695 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.113e-05/0.09728, allocations: 95.61 kB / 476.6 MB, free: 8.602 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.09729, allocations: 0 / 476.6 MB, free: 8.602 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002015/0.0975, allocations: 4 kB / 476.6 MB, free: 8.598 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.0003662/0.09787, allocations: 0.6933 MB / 477.3 MB, free: 7.875 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001241/0.098, allocations: 35.92 kB / 477.4 MB, free: 7.84 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.09801, allocations: 0 / 477.4 MB, free: 7.84 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.808e-05/0.09806, allocations: 11.98 kB / 477.4 MB, free: 7.828 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001934/0.09827, allocations: 17.53 kB / 477.4 MB, free: 7.816 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003556/0.09863, allocations: 162.3 kB / 477.6 MB, free: 7.617 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000199/0.09884, allocations: 0.6848 MB / 478.2 MB, free: 6.906 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.621e-05/0.09887, allocations: 0 / 478.2 MB, free: 6.906 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.78e-05/0.09891, allocations: 15.44 kB / 478.3 MB, free: 6.891 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.09892, allocations: 0 / 478.3 MB, free: 6.891 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.283/3.382, allocations: 1.216 MB / 479.5 MB, free: 5.773 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002203/3.383, allocations: 174.3 kB / 479.7 MB, free: 5.523 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.112/5.495, allocations: 0 / 479.7 MB, free: 5.523 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