Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001804/0.001804, allocations: 123.4 kB / 17.79 MB, free: 5.227 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002081/0.002081, allocations: 208.3 kB / 20.75 MB, free: 2.273 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.555/1.555, allocations: 230.6 MB / 254.1 MB, free: 15.07 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2461/0.2461, allocations: 46.92 MB / 357.1 MB, free: 10.3 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002089/0.002089, allocations: 79.88 kB / 0.4909 GB, free: 7.961 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1517/0.1538, allocations: 65.99 MB / 0.5554 GB, free: 5.844 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.003586/0.1574, allocations: 1.463 MB / 0.5568 GB, free: 4.367 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001204/0.1586, allocations: 488.5 kB / 0.5573 GB, free: 3.887 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.627e-05/0.1587, allocations: 0 / 0.5573 GB, free: 3.887 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 4.151e-05/0.1587, allocations: 7.922 kB / 0.5573 GB, free: 3.879 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 6.405e-05/0.1588, allocations: 7.938 kB / 0.5573 GB, free: 3.871 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002798/0.1591, allocations: 27.91 kB / 0.5573 GB, free: 3.844 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001495/0.1592, allocations: 47.78 kB / 0.5573 GB, free: 3.797 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.448e-05/0.1593, allocations: 0 / 0.5573 GB, free: 3.797 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001414/0.1594, allocations: 19.98 kB / 0.5574 GB, free: 3.777 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.688e-05/0.1595, allocations: 27.84 kB / 0.5574 GB, free: 3.75 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.846e-05/0.1595, allocations: 4 kB / 0.5574 GB, free: 3.746 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.982e-05/0.1596, allocations: 4 kB / 0.5574 GB, free: 3.742 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.466e-05/0.1596, allocations: 4 kB / 0.5574 GB, free: 3.738 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 3.87e-05/0.1596, allocations: 15.92 kB / 0.5574 GB, free: 3.723 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001512/0.1598, allocations: 39.83 kB / 0.5575 GB, free: 3.684 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.1598, allocations: 0 / 0.5575 GB, free: 3.684 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1598, allocations: 0 / 0.5575 GB, free: 3.684 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.069e-05/0.1598, allocations: 3.938 kB / 0.5575 GB, free: 3.68 MB / 414.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.0005896/0.1604, allocations: 359.3 kB / 0.5578 GB, free: 3.281 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.419e-05/0.1604, allocations: 8.031 kB / 0.5578 GB, free: 3.273 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.521e-05/0.1605, allocations: 38.69 kB / 0.5578 GB, free: 3.227 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001823/0.1607, allocations: 12.92 kB / 0.5579 GB, free: 3.215 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002903/0.161, allocations: 172.3 kB / 0.558 GB, free: 3.008 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.45e-05/0.161, allocations: 4.375 kB / 0.558 GB, free: 3.004 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.575e-05/0.161, allocations: 384 / 0.558 GB, free: 3.004 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001973/0.1612, allocations: 63.52 kB / 0.5581 GB, free: 2.93 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.909e-06/0.1612, allocations: 11.94 kB / 0.5581 GB, free: 2.918 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.131e-05/0.1612, allocations: 0 / 0.5581 GB, free: 2.918 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.875e-06/0.1612, allocations: 3.984 kB / 0.5581 GB, free: 2.914 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000121/0.1613, allocations: 23.92 kB / 0.5581 GB, free: 2.891 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004751/0.1618, allocations: 260.9 kB / 0.5584 GB, free: 2.586 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001395/0.1619, allocations: 34.56 kB / 0.5584 GB, free: 2.543 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.089e-05/0.162, allocations: 12.92 kB / 0.5584 GB, free: 2.527 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.208e-05/0.162, allocations: 3.984 kB / 0.5584 GB, free: 2.523 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.999e-05/0.1621, allocations: 30.56 kB / 0.5585 GB, free: 2.484 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 1.262e-06/0.1621, allocations: 0 / 0.5585 GB, free: 2.484 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003313/0.1624, allocations: 69.61 kB / 0.5585 GB, free: 2.41 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.498e-05/0.1625, allocations: 77.23 kB / 0.5586 GB, free: 2.316 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001281/0.1626, allocations: 117.8 kB / 0.5587 GB, free: 2.191 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.574e-05/0.1626, allocations: 25.7 kB / 0.5587 GB, free: 2.16 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.733e-05/0.1627, allocations: 88.08 kB / 0.5588 GB, free: 2.07 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.486e-05/0.1627, allocations: 7.953 kB / 0.5588 GB, free: 2.062 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.609e-05/0.1628, allocations: 13.7 kB / 0.5588 GB, free: 2.043 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001682/0.1629, allocations: 322.8 kB / 0.5591 GB, free: 1.719 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.888e-05/0.163, allocations: 11.98 kB / 0.5592 GB, free: 1.707 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.5e-05/0.1631, allocations: 29.72 kB / 0.5592 GB, free: 1.672 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001143/0.1632, allocations: 28.78 kB / 0.5592 GB, free: 1.641 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.1632, allocations: 0 / 0.5592 GB, free: 1.641 MB / 414.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001773/0.1634, allocations: 53.67 kB / 0.5593 GB, free: 1.582 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.128e-05/0.1634, allocations: 8 kB / 0.5593 GB, free: 1.574 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.1634, allocations: 0 / 0.5593 GB, free: 1.574 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.757e-05/0.1634, allocations: 3.938 kB / 0.5593 GB, free: 1.57 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.481e-05/0.1635, allocations: 4 kB / 0.5593 GB, free: 1.566 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.945e-06/0.1635, allocations: 8.016 kB / 0.5593 GB, free: 1.559 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.793e-05/0.1636, allocations: 7.953 kB / 0.5593 GB, free: 1.551 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.057e-05/0.1636, allocations: 4 kB / 0.5593 GB, free: 1.547 MB / 414.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 0.0001096/0.1637, allocations: 120 kB / 0.5594 GB, free: 1.422 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.139e-05/0.1638, allocations: 11.92 kB / 0.5594 GB, free: 1.41 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.503e-05/0.1638, allocations: 7.906 kB / 0.5594 GB, free: 1.402 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.1638, allocations: 0 / 0.5594 GB, free: 1.402 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.1638, allocations: 0 / 0.5594 GB, free: 1.402 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.1638, allocations: 4 kB / 0.5594 GB, free: 1.398 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002296/0.164, allocations: 169.5 kB / 0.5596 GB, free: 1.184 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.164, allocations: 0 / 0.5596 GB, free: 1.184 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.728e-05/0.1641, allocations: 4 kB / 0.5596 GB, free: 1.18 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.963e-06/0.1641, allocations: 0 / 0.5596 GB, free: 1.18 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.713e-05/0.1641, allocations: 3.984 kB / 0.5596 GB, free: 1.176 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.1641, allocations: 0 / 0.5596 GB, free: 1.176 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1641, allocations: 0 / 0.5596 GB, free: 1.176 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002362/0.1643, allocations: 159.4 kB / 0.5598 GB, free: 1.004 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.165e-05/0.1644, allocations: 77.25 kB / 0.5598 GB, free: 0.9102 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.386e-05/0.1644, allocations: 3.984 kB / 0.5598 GB, free: 0.9062 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001234/0.1646, allocations: 11.98 kB / 0.5598 GB, free: 0.8945 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.572e-05/0.1646, allocations: 3.984 kB / 0.5598 GB, free: 0.8906 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.205e-06/0.1646, allocations: 4 kB / 0.5599 GB, free: 0.8867 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.292e-05/0.1647, allocations: 91.2 kB / 0.5599 GB, free: 0.7969 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1647, allocations: 0 / 0.5599 GB, free: 0.7969 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003387/0.165, allocations: 12.03 kB / 0.56 GB, free: 0.7852 MB / 414.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.0006989/0.1657, allocations: 0.6812 MB / 0.5606 GB, free: 80 kB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002141/0.1659, allocations: 31.92 kB / 0.5606 GB, free: 48 kB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.1659, allocations: 4.031 kB / 0.5607 GB, free: 44 kB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 7.026e-05/0.166, allocations: 11.98 kB / 0.5607 GB, free: 32 kB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003188/0.1663, allocations: 4 kB / 0.5607 GB, free: 28 kB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001782/0.1681, allocations: 1.262 MB / 0.5619 GB, free: 14.68 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003789/0.1685, allocations: 0.6807 MB / 0.5626 GB, free: 13.98 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 3.613e-05/0.1685, allocations: 0 / 0.5626 GB, free: 13.98 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.928e-05/0.1686, allocations: 23.42 kB / 0.5626 GB, free: 13.95 MB / 430.1 MB Notification: Performance of SimCode: time 3.6e-07/0.1686, allocations: 288 / 0.5626 GB, free: 13.95 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02707/0.1957, allocations: 1.532 MB / 0.5641 GB, free: 12.49 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.071/8.267, allocations: 7.875 kB / 0.5641 GB, free: 12.48 MB / 430.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Blocks_Hysteresis_fmu --startTime=0 --stopTime=3 --stepSize=0.000598325 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Blocks_Hysteresis.fmu > ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.418266323860735]