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.001024/0.001024, allocations: 106.9 kB / 17.21 MB, free: 6.273 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.001055/0.001055, allocations: 194 kB / 18.12 MB, free: 5.363 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.36/1.36, allocations: 222.9 MB / 241.8 MB, free: 15.49 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.2433/0.2433, allocations: 44.18 MB / 336.1 MB, free: 2.93 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001324/0.001325, allocations: 61.16 kB / 407.8 MB, free: 27.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1383/0.1396, allocations: 60.83 MB / 468.6 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.003408/0.1431, allocations: 1.49 MB / 470.1 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008026/0.1439, allocations: 419.1 kB / 470.5 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.656e-05/0.144, allocations: 0 / 470.5 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.991e-05/0.144, allocations: 0 / 470.5 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.328e-05/0.1441, allocations: 15.86 kB / 470.5 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002004/0.1443, allocations: 7.938 kB / 470.5 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.231e-05/0.1444, allocations: 31.92 kB / 470.6 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001056/0.1445, allocations: 15.97 kB / 470.6 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001027/0.1447, allocations: 15.94 kB / 470.6 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.94e-05/0.1447, allocations: 15.92 kB / 470.6 MB, free: 12.72 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.66e-05/0.1448, allocations: 0 / 470.6 MB, free: 12.72 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.249e-05/0.1448, allocations: 4 kB / 470.6 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.818e-05/0.1448, allocations: 3.984 kB / 470.6 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.889e-05/0.1448, allocations: 19.86 kB / 470.7 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.291e-05/0.1449, allocations: 35.89 kB / 470.7 MB, free: 12.66 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.145, allocations: 0 / 470.7 MB, free: 12.66 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.145, allocations: 0 / 470.7 MB, free: 12.66 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.63e-06/0.145, allocations: 0 / 470.7 MB, free: 12.66 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.000481/0.1455, allocations: 347.7 kB / 471 MB, free: 12.27 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.829e-05/0.1455, allocations: 8.031 kB / 471 MB, free: 12.26 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.709e-05/0.1456, allocations: 34.75 kB / 471.1 MB, free: 12.22 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.46e-05/0.1456, allocations: 8.781 kB / 471.1 MB, free: 12.21 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001349/0.1457, allocations: 168.3 kB / 471.2 MB, free: 12.01 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.524e-05/0.1458, allocations: 4.375 kB / 471.2 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.304e-05/0.1458, allocations: 4.375 kB / 471.3 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001716/0.146, allocations: 67.52 kB / 471.3 MB, free: 11.92 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.484e-06/0.146, allocations: 0 / 471.3 MB, free: 11.92 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.017e-06/0.146, allocations: 0 / 471.3 MB, free: 11.92 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.146, allocations: 0 / 471.3 MB, free: 11.92 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.677e-05/0.1461, allocations: 19.98 kB / 471.3 MB, free: 11.9 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004208/0.1465, allocations: 272.7 kB / 471.6 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.244e-05/0.1466, allocations: 38.55 kB / 471.6 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.953e-05/0.1467, allocations: 12.92 kB / 471.7 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.606e-05/0.1467, allocations: 0 / 471.7 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.061e-05/0.1468, allocations: 34.56 kB / 471.7 MB, free: 11.48 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 1.042e-06/0.1468, allocations: 0 / 471.7 MB, free: 11.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002672/0.147, allocations: 61.61 kB / 471.7 MB, free: 11.41 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.367e-05/0.1471, allocations: 85.23 kB / 471.8 MB, free: 11.31 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.793e-05/0.1472, allocations: 105.8 kB / 471.9 MB, free: 11.2 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.14e-05/0.1473, allocations: 29.7 kB / 472 MB, free: 11.16 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.638e-05/0.1473, allocations: 88.12 kB / 472.1 MB, free: 11.07 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.063e-05/0.1473, allocations: 11.89 kB / 472.1 MB, free: 11.06 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.043e-05/0.1474, allocations: 13.72 kB / 472.1 MB, free: 11.04 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001349/0.1475, allocations: 322.8 kB / 472.4 MB, free: 10.72 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.71e-05/0.1476, allocations: 12 kB / 472.4 MB, free: 10.71 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.549e-05/0.1477, allocations: 25.7 kB / 472.4 MB, free: 10.68 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.349e-05/0.1477, allocations: 28.78 kB / 472.5 MB, free: 10.64 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.1478, allocations: 3.938 kB / 472.5 MB, free: 10.64 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001368/0.1479, allocations: 57.69 kB / 472.5 MB, free: 10.58 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.876e-05/0.1479, allocations: 11.92 kB / 472.5 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.1e-06/0.1479, allocations: 0 / 472.5 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.156e-05/0.148, allocations: 0 / 472.5 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.1e-05/0.148, allocations: 8.031 kB / 472.5 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.2e-06/0.148, allocations: 0 / 472.5 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.177e-05/0.1481, allocations: 11.98 kB / 472.5 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.483e-06/0.1481, allocations: 0 / 472.5 MB, free: 10.55 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 9.546e-05/0.1482, allocations: 113.8 kB / 472.7 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.76e-05/0.1483, allocations: 7.906 kB / 472.7 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.631e-05/0.1483, allocations: 7.484 kB / 472.7 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.694e-06/0.1483, allocations: 0 / 472.7 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.1483, allocations: 8 kB / 472.7 MB, free: 10.4 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.084e-06/0.1483, allocations: 0 / 472.7 MB, free: 10.4 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001812/0.1485, allocations: 165.6 kB / 472.8 MB, free: 10.19 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.063e-06/0.1485, allocations: 0 / 472.8 MB, free: 10.19 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.73e-05/0.1486, allocations: 11.92 kB / 472.9 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.1486, allocations: 0 / 472.9 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.454e-06/0.1486, allocations: 0 / 472.9 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.1486, allocations: 0 / 472.9 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.452e-06/0.1486, allocations: 0 / 472.9 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001907/0.1488, allocations: 159.5 kB / 473 MB, free: 10.01 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.884e-05/0.1489, allocations: 85.02 kB / 473.1 MB, free: 9.906 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.708e-05/0.1489, allocations: 0 / 473.1 MB, free: 9.906 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.889e-05/0.149, allocations: 11.98 kB / 473.1 MB, free: 9.895 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.806e-05/0.149, allocations: 3.984 kB / 473.1 MB, free: 9.891 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.41e-06/0.149, allocations: 4 kB / 473.1 MB, free: 9.887 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.769e-05/0.1491, allocations: 83.28 kB / 473.2 MB, free: 9.805 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1491, allocations: 4.031 kB / 473.2 MB, free: 9.801 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002191/0.1493, allocations: 8 kB / 473.2 MB, free: 9.793 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.0004427/0.1498, allocations: 0.6777 MB / 473.9 MB, free: 9.086 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001524/0.1499, allocations: 36 kB / 473.9 MB, free: 9.051 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.1499, allocations: 0 / 473.9 MB, free: 9.051 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.025e-05/0.15, allocations: 15.94 kB / 473.9 MB, free: 9.035 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002079/0.1502, allocations: 0 / 473.9 MB, free: 9.035 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000433/0.1507, allocations: 165.9 kB / 474.1 MB, free: 8.832 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003104/0.151, allocations: 0.6848 MB / 474.8 MB, free: 8.121 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.875e-05/0.151, allocations: 12.12 kB / 474.8 MB, free: 8.109 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.799e-05/0.1511, allocations: 11.44 kB / 474.8 MB, free: 8.098 MB / 350.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1511, allocations: 0 / 474.8 MB, free: 8.098 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01328/0.1644, allocations: 1.283 MB / 476.1 MB, free: 6.883 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002038/0.1646, allocations: 179.9 kB / 476.3 MB, free: 6.633 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.759/1.923, allocations: 3.938 kB / 476.3 MB, free: 6.629 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