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.0012/0.0012, allocations: 105.1 kB / 17.33 MB, free: 5.996 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.001187/0.001187, allocations: 193.3 kB / 18.25 MB, free: 5.086 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.366/1.366, allocations: 222.9 MB / 241.9 MB, free: 15.38 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.2291/0.2291, allocations: 44.17 MB / 336.2 MB, free: 2.945 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001321/0.001321, allocations: 67.97 kB / 408 MB, free: 27.49 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1362/0.1375, allocations: 60.82 MB / 468.8 MB, free: 14.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.003063/0.1407, allocations: 1.493 MB / 470.3 MB, free: 13.13 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007662/0.1415, allocations: 423.1 kB / 470.7 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.81e-05/0.1415, allocations: 0 / 470.7 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.095e-05/0.1416, allocations: 0 / 470.7 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.328e-05/0.1416, allocations: 3.938 kB / 470.7 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002072/0.1418, allocations: 15.98 kB / 470.7 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.249e-05/0.1419, allocations: 35.91 kB / 470.8 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001059/0.1421, allocations: 11.98 kB / 470.8 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001078/0.1422, allocations: 15.88 kB / 470.8 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.486e-05/0.1423, allocations: 19.92 kB / 470.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.898e-05/0.1423, allocations: 0 / 470.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.285e-05/0.1423, allocations: 4 kB / 470.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.956e-05/0.1423, allocations: 11.97 kB / 470.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.418e-05/0.1424, allocations: 11.94 kB / 470.8 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001018/0.1425, allocations: 31.91 kB / 470.9 MB, free: 12.55 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.1425, allocations: 0 / 470.9 MB, free: 12.55 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.1425, allocations: 0 / 470.9 MB, free: 12.55 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.895e-06/0.1425, allocations: 3.984 kB / 470.9 MB, free: 12.55 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.000477/0.143, allocations: 351.7 kB / 471.2 MB, free: 12.16 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.466e-05/0.143, allocations: 8.031 kB / 471.2 MB, free: 12.15 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.044e-05/0.1431, allocations: 30.75 kB / 471.3 MB, free: 12.11 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.621e-05/0.1431, allocations: 20.77 kB / 471.3 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001443/0.1433, allocations: 164.3 kB / 471.4 MB, free: 11.89 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.48e-05/0.1433, allocations: 4.375 kB / 471.4 MB, free: 11.89 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.045e-05/0.1433, allocations: 384 / 471.4 MB, free: 11.89 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002034/0.1435, allocations: 67.45 kB / 471.5 MB, free: 11.81 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.364e-06/0.1436, allocations: 4 kB / 471.5 MB, free: 11.8 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.005e-05/0.1436, allocations: 0 / 471.5 MB, free: 11.8 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.27e-06/0.1436, allocations: 0 / 471.5 MB, free: 11.8 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.203e-05/0.1437, allocations: 19.98 kB / 471.5 MB, free: 11.79 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004446/0.1441, allocations: 268.8 kB / 471.8 MB, free: 11.47 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.22e-05/0.1442, allocations: 46.44 kB / 471.8 MB, free: 11.42 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.667e-05/0.1443, allocations: 12.92 kB / 471.9 MB, free: 11.4 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.606e-05/0.1443, allocations: 0 / 471.9 MB, free: 11.4 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.433e-05/0.1443, allocations: 34.56 kB / 471.9 MB, free: 11.36 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 1.192e-06/0.1444, allocations: 0 / 471.9 MB, free: 11.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002338/0.1446, allocations: 57.67 kB / 471.9 MB, free: 11.3 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.275e-05/0.1447, allocations: 81.23 kB / 472 MB, free: 11.2 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.586e-05/0.1448, allocations: 113.8 kB / 472.1 MB, free: 11.08 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.03e-05/0.1448, allocations: 29.7 kB / 472.2 MB, free: 11.04 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.813e-05/0.1449, allocations: 88.12 kB / 472.3 MB, free: 10.95 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.779e-05/0.1449, allocations: 7.844 kB / 472.3 MB, free: 10.95 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.548e-05/0.1449, allocations: 17.72 kB / 472.3 MB, free: 10.92 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001316/0.1451, allocations: 318.8 kB / 472.6 MB, free: 10.6 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.75e-05/0.1451, allocations: 11.98 kB / 472.6 MB, free: 10.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.604e-05/0.1452, allocations: 33.7 kB / 472.6 MB, free: 10.55 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.434e-05/0.1453, allocations: 20.84 kB / 472.7 MB, free: 10.53 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.1453, allocations: 4 kB / 472.7 MB, free: 10.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000118/0.1454, allocations: 49.69 kB / 472.7 MB, free: 10.47 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.357e-05/0.1454, allocations: 4 kB / 472.7 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.142e-06/0.1454, allocations: 7.984 kB / 472.7 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.212e-05/0.1455, allocations: 0 / 472.7 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.446e-05/0.1455, allocations: 11.97 kB / 472.7 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.621e-06/0.1456, allocations: 4 kB / 472.7 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.791e-05/0.1456, allocations: 7.984 kB / 472.7 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.893e-05/0.1456, allocations: 4 kB / 472.7 MB, free: 10.43 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.543e-05/0.1457, allocations: 113.8 kB / 472.9 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.508e-05/0.1458, allocations: 7.844 kB / 472.9 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.216e-05/0.1458, allocations: 15.48 kB / 472.9 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.432e-06/0.1458, allocations: 144 / 472.9 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.1458, allocations: 4 kB / 472.9 MB, free: 10.28 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.1458, allocations: 3.984 kB / 472.9 MB, free: 10.28 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001694/0.146, allocations: 165.6 kB / 473 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.22e-07/0.146, allocations: 0 / 473 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.765e-05/0.1461, allocations: 3.984 kB / 473.1 MB, free: 10.06 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.413e-06/0.1461, allocations: 4 kB / 473.1 MB, free: 10.06 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.666e-06/0.1461, allocations: 0 / 473.1 MB, free: 10.06 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.42e-07/0.1461, allocations: 0 / 473.1 MB, free: 10.06 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.1461, allocations: 0 / 473.1 MB, free: 10.06 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001842/0.1463, allocations: 159.4 kB / 473.2 MB, free: 9.887 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.297e-05/0.1463, allocations: 85.02 kB / 473.3 MB, free: 9.785 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.717e-05/0.1464, allocations: 0 / 473.3 MB, free: 9.785 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.341e-05/0.1464, allocations: 7.984 kB / 473.3 MB, free: 9.777 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.061e-05/0.1465, allocations: 11.92 kB / 473.3 MB, free: 9.766 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.707e-06/0.1465, allocations: 0 / 473.3 MB, free: 9.766 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.382e-05/0.1466, allocations: 87.28 kB / 473.4 MB, free: 9.68 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1466, allocations: 0 / 473.4 MB, free: 9.68 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002129/0.1468, allocations: 8.031 kB / 473.4 MB, free: 9.672 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.0005139/0.1473, allocations: 0.6778 MB / 474.1 MB, free: 8.965 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001623/0.1475, allocations: 31.92 kB / 474.1 MB, free: 8.934 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.1475, allocations: 4.031 kB / 474.1 MB, free: 8.93 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.399e-05/0.1475, allocations: 11.98 kB / 474.1 MB, free: 8.918 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002165/0.1478, allocations: 10.19 kB / 474.1 MB, free: 8.91 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004692/0.1482, allocations: 156.2 kB / 474.3 MB, free: 8.719 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003574/0.1486, allocations: 0.6845 MB / 475 MB, free: 8.008 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.358e-05/0.1487, allocations: 4.062 kB / 475 MB, free: 8.004 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.156e-05/0.1487, allocations: 19.38 kB / 475 MB, free: 7.984 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1487, allocations: 0 / 475 MB, free: 7.984 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01836/0.1671, allocations: 1.335 MB / 476.3 MB, free: 6.742 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002031/0.1673, allocations: 183.3 kB / 476.5 MB, free: 6.484 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.88/2.047, allocations: 3.984 kB / 476.5 MB, free: 6.48 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