Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001545/0.001545, allocations: 103.8 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001646/0.001646, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.453/1.453, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2244/0.2244, allocations: 46.1 MB / 344.1 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001588/0.001588, allocations: 76.22 kB / 417.7 MB, free: 19.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1362/0.1379, allocations: 62.45 MB / 480.1 MB, free: 5.18 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.003129/0.141, allocations: 1.46 MB / 481.6 MB, free: 3.707 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009648/0.142, allocations: 482.8 kB / 482.1 MB, free: 3.23 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.92e-05/0.1421, allocations: 4 kB / 482.1 MB, free: 3.227 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.433e-05/0.1422, allocations: 3.938 kB / 482.1 MB, free: 3.223 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.077e-05/0.1423, allocations: 3.938 kB / 482.1 MB, free: 3.219 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002664/0.1425, allocations: 31.91 kB / 482.1 MB, free: 3.188 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001139/0.1427, allocations: 35.92 kB / 482.1 MB, free: 3.152 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001031/0.1428, allocations: 7.984 kB / 482.1 MB, free: 3.145 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001488/0.1429, allocations: 23.86 kB / 482.2 MB, free: 3.121 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.674e-05/0.143, allocations: 19.92 kB / 482.2 MB, free: 3.102 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.551e-05/0.143, allocations: 0 / 482.2 MB, free: 3.102 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.798e-05/0.1431, allocations: 8 kB / 482.2 MB, free: 3.094 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.776e-05/0.1431, allocations: 11.92 kB / 482.2 MB, free: 3.082 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.667e-05/0.1432, allocations: 15.92 kB / 482.2 MB, free: 3.066 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001278/0.1433, allocations: 35.91 kB / 482.3 MB, free: 3.031 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.1433, allocations: 0 / 482.3 MB, free: 3.031 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.1433, allocations: 0 / 482.3 MB, free: 3.031 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.235e-06/0.1433, allocations: 4 kB / 482.3 MB, free: 3.027 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.0005269/0.1439, allocations: 347.7 kB / 482.6 MB, free: 2.641 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.171e-05/0.1439, allocations: 8.031 kB / 482.6 MB, free: 2.633 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.506e-05/0.144, allocations: 38.75 kB / 482.6 MB, free: 2.586 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001706/0.1442, allocations: 16.83 kB / 482.7 MB, free: 2.57 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001828/0.1443, allocations: 180.2 kB / 482.8 MB, free: 2.355 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.151e-05/0.1444, allocations: 8.297 kB / 482.9 MB, free: 2.348 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.374e-05/0.1444, allocations: 384 / 482.9 MB, free: 2.348 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000165/0.1446, allocations: 63.53 kB / 482.9 MB, free: 2.273 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.003e-06/0.1446, allocations: 0 / 482.9 MB, free: 2.273 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.009e-05/0.1446, allocations: 0 / 482.9 MB, free: 2.273 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.618e-06/0.1446, allocations: 0 / 482.9 MB, free: 2.273 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.185e-05/0.1447, allocations: 23.92 kB / 482.9 MB, free: 2.25 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000379/0.1451, allocations: 268.9 kB / 483.2 MB, free: 1.938 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.333e-05/0.1452, allocations: 34.5 kB / 483.2 MB, free: 1.895 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.864e-05/0.1452, allocations: 12.86 kB / 483.2 MB, free: 1.879 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.542e-05/0.1453, allocations: 4 kB / 483.2 MB, free: 1.875 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.727e-05/0.1453, allocations: 38.55 kB / 483.3 MB, free: 1.828 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 1.643e-06/0.1453, allocations: 0 / 483.3 MB, free: 1.828 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002609/0.1456, allocations: 61.62 kB / 483.3 MB, free: 1.762 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.456e-05/0.1456, allocations: 77.11 kB / 483.4 MB, free: 1.668 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.573e-05/0.1457, allocations: 113.8 kB / 483.5 MB, free: 1.547 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.159e-05/0.1458, allocations: 29.7 kB / 483.6 MB, free: 1.512 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001199/0.1459, allocations: 88.14 kB / 483.6 MB, free: 1.422 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.944e-05/0.1459, allocations: 8.031 kB / 483.7 MB, free: 1.414 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.754e-05/0.146, allocations: 13.72 kB / 483.7 MB, free: 1.395 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000125/0.1461, allocations: 322.8 kB / 484 MB, free: 1.07 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.098e-05/0.1461, allocations: 12 kB / 484 MB, free: 1.059 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.693e-05/0.1462, allocations: 25.7 kB / 484 MB, free: 1.027 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.524e-05/0.1463, allocations: 24.84 kB / 484 MB, free: 1 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.1463, allocations: 4.031 kB / 484 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001406/0.1465, allocations: 65.52 kB / 484.1 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.667e-05/0.1465, allocations: 4 kB / 484.1 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.1465, allocations: 0 / 484.1 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.387e-05/0.1465, allocations: 0 / 484.1 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.686e-05/0.1466, allocations: 4 kB / 484.1 MB, free: 0.918 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.462e-06/0.1466, allocations: 0 / 484.1 MB, free: 0.918 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.075e-05/0.1467, allocations: 11.98 kB / 484.1 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.761e-06/0.1467, allocations: 0 / 484.1 MB, free: 0.9062 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 8.818e-05/0.1468, allocations: 121.8 kB / 484.3 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.718e-05/0.1468, allocations: 144 / 484.3 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.065e-05/0.1468, allocations: 19.5 kB / 484.3 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-06/0.1468, allocations: 0 / 484.3 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.1469, allocations: 0 / 484.3 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-06/0.1469, allocations: 384 / 484.3 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001668/0.147, allocations: 161.6 kB / 484.4 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.147, allocations: 4 kB / 484.4 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.147e-05/0.1471, allocations: 4 kB / 484.4 MB, free: 0.543 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.804e-06/0.1471, allocations: 3.938 kB / 484.4 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.302e-05/0.1471, allocations: 8 kB / 484.4 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.446e-06/0.1471, allocations: 3.938 kB / 484.5 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.1471, allocations: 7.922 kB / 484.5 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002438/0.1474, allocations: 151.4 kB / 484.6 MB, free: 364 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.773e-05/0.1474, allocations: 81.11 kB / 484.7 MB, free: 264 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.017e-05/0.1475, allocations: 0 / 484.7 MB, free: 264 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.031e-05/0.1476, allocations: 12.02 kB / 484.7 MB, free: 252 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.233e-05/0.1476, allocations: 7.984 kB / 484.7 MB, free: 244 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.208e-06/0.1476, allocations: 0 / 484.7 MB, free: 244 kB / 350.1 MB Notification: Performance of sorting global known variables: time 4.874e-05/0.1477, allocations: 91.27 kB / 484.8 MB, free: 152 kB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1477, allocations: 0 / 484.8 MB, free: 152 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002271/0.1479, allocations: 4 kB / 484.8 MB, free: 148 kB / 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.0004656/0.1484, allocations: 0.6889 MB / 485.5 MB, free: 15.43 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001499/0.1486, allocations: 27.98 kB / 485.5 MB, free: 15.4 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.1486, allocations: 0 / 485.5 MB, free: 15.4 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 5.202e-05/0.1486, allocations: 11.98 kB / 485.5 MB, free: 15.39 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002164/0.1489, allocations: 14.12 kB / 485.5 MB, free: 15.38 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001352/0.1502, allocations: 1.261 MB / 486.8 MB, free: 14.04 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002642/0.1505, allocations: 0.6807 MB / 487.5 MB, free: 13.34 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.966e-05/0.1505, allocations: 0 / 487.5 MB, free: 13.34 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.615e-05/0.1506, allocations: 15.44 kB / 487.5 MB, free: 13.32 MB / 366.1 MB Notification: Performance of SimCode: time 3.466e-06/0.1506, allocations: 0 / 487.5 MB, free: 13.32 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02204/0.1726, allocations: 1.502 MB / 489 MB, free: 11.85 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.574/7.747, allocations: 4.844 kB / 489 MB, free: 11.85 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 ModelicaTest_trunk_ModelicaTest_Blocks_Hysteresis.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis_res.csv","/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_trunk_ModelicaTest.Blocks.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches