Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00158/0.00158, allocations: 116.9 kB / 18.49 MB, free: 4.535 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001698/0.001698, allocations: 220.7 kB / 21.46 MB, free: 1.582 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.661/1.661, allocations: 230.5 MB / 254.7 MB, free: 15.18 MB / 206.1 MB " [Timeout remaining time 178] 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(Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_HoldWithDAeffects2",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_HoldWithDAeffects2",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001929/0.001929, allocations: 63.89 kB / 373.7 MB, free: 10.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1487/0.1506, allocations: 53.38 MB / 427.1 MB, free: 4.625 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2): time 0.004125/0.1548, allocations: 1.878 MB / 429 MB, free: 2.738 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001644/0.1564, allocations: 0.6975 MB / 429.7 MB, free: 2.039 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001471/0.1565, allocations: 7.938 kB / 429.7 MB, free: 2.031 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001892/0.1567, allocations: 31.67 kB / 429.7 MB, free: 2 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001532/0.1569, allocations: 27.78 kB / 429.7 MB, free: 1.973 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004584/0.1573, allocations: 107.7 kB / 429.8 MB, free: 1.867 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002444/0.1576, allocations: 143.6 kB / 430 MB, free: 1.727 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001721/0.1578, allocations: 41.7 kB / 430 MB, free: 1.684 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000177/0.1579, allocations: 67.72 kB / 430.1 MB, free: 1.617 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001203/0.1581, allocations: 51.7 kB / 430.1 MB, free: 1.566 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.932e-05/0.1581, allocations: 8 kB / 430.1 MB, free: 1.559 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.481e-05/0.1582, allocations: 23.92 kB / 430.1 MB, free: 1.535 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001014/0.1583, allocations: 35.8 kB / 430.2 MB, free: 1.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.494e-05/0.1583, allocations: 59.61 kB / 430.2 MB, free: 1.441 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002901/0.1586, allocations: 151.2 kB / 430.4 MB, free: 1.293 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.324e-06/0.1586, allocations: 3.984 kB / 430.4 MB, free: 1.289 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.1586, allocations: 0 / 430.4 MB, free: 1.289 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.414e-06/0.1586, allocations: 0 / 430.4 MB, free: 1.289 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: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0008169/0.1595, allocations: 462.8 kB / 430.8 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.933e-05/0.1595, allocations: 8.031 kB / 430.9 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.406e-05/0.1595, allocations: 8.312 kB / 430.9 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.784e-05/0.1596, allocations: 38.75 kB / 430.9 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001956/0.1598, allocations: 24.83 kB / 430.9 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004502/0.1602, allocations: 255.7 kB / 431.2 MB, free: 424 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.693e-05/0.1602, allocations: 8 kB / 431.2 MB, free: 416 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.654e-05/0.1603, allocations: 8 kB / 431.2 MB, free: 408 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006584/0.1609, allocations: 284.2 kB / 431.5 MB, free: 92 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.205e-05/0.1609, allocations: 0 / 431.5 MB, free: 92 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.166e-05/0.161, allocations: 8 kB / 431.5 MB, free: 84 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.052e-06/0.161, allocations: 0 / 431.5 MB, free: 84 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002348/0.1612, allocations: 75.88 kB / 431.5 MB, free: 8 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007052/0.1619, allocations: 431.4 kB / 432 MB, free: 15.52 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005852/0.1625, allocations: 286.1 kB / 432.2 MB, free: 15.18 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000206/0.1627, allocations: 108.4 kB / 432.4 MB, free: 15.06 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.46e-05/0.1627, allocations: 3.984 kB / 432.4 MB, free: 15.05 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.612e-05/0.1628, allocations: 46.48 kB / 432.4 MB, free: 15 MB / 366.1 MB Notification: Performance of pre-optimization done (n=18): time 1.533e-06/0.1628, allocations: 0 / 432.4 MB, free: 15 MB / 366.1 MB Notification: Performance of matching and sorting (n=18): time 0.0006152/0.1634, allocations: 225.3 kB / 432.6 MB, free: 14.77 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001672/0.1636, allocations: 196.3 kB / 432.8 MB, free: 14.54 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002132/0.1638, allocations: 182.3 kB / 433 MB, free: 14.35 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.996e-05/0.1638, allocations: 34.02 kB / 433 MB, free: 14.31 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.654e-05/0.1639, allocations: 104.5 kB / 433.1 MB, free: 14.2 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.048e-05/0.1639, allocations: 15.89 kB / 433.1 MB, free: 14.19 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.451e-05/0.164, allocations: 41.66 kB / 433.2 MB, free: 14.14 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001579/0.1641, allocations: 322.8 kB / 433.5 MB, free: 13.82 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.354e-05/0.1642, allocations: 23.98 kB / 433.5 MB, free: 13.79 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001597/0.1644, allocations: 142.4 kB / 433.7 MB, free: 13.6 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002442/0.1646, allocations: 170.4 kB / 433.8 MB, free: 13.38 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.1646, allocations: 4 kB / 433.8 MB, free: 13.38 MB / 366.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003055/0.1649, allocations: 177.2 kB / 434 MB, free: 13.2 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.752e-05/0.1649, allocations: 4.531 kB / 434 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.085e-06/0.1649, allocations: 8 kB / 434 MB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.967e-05/0.165, allocations: 4 kB / 434 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001456/0.1651, allocations: 47.86 kB / 434.1 MB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.159e-05/0.1651, allocations: 4 kB / 434.1 MB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001096/0.1652, allocations: 19.88 kB / 434.1 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.723e-05/0.1653, allocations: 12 kB / 434.1 MB, free: 13.1 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (hold1.compDelay.ubuf) * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 19 * 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.0001467/0.1654, allocations: 129.8 kB / 434.2 MB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003114/0.1657, allocations: 157.4 kB / 434.4 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.913e-05/0.1658, allocations: 17.41 kB / 434.4 MB, free: 12.78 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.082e-05/0.1658, allocations: 11.94 kB / 434.4 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.142e-06/0.1658, allocations: 0 / 434.4 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.013e-05/0.1658, allocations: 7.984 kB / 434.4 MB, free: 12.76 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003324/0.1661, allocations: 217.5 kB / 434.6 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.947e-06/0.1661, allocations: 4 kB / 434.6 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001474/0.1663, allocations: 39.91 kB / 434.7 MB, free: 12.46 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.444e-06/0.1663, allocations: 0 / 434.7 MB, free: 12.46 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.442e-05/0.1663, allocations: 4 kB / 434.7 MB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.374e-06/0.1663, allocations: 11.97 kB / 434.7 MB, free: 12.44 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.1663, allocations: 0 / 434.7 MB, free: 12.44 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004661/0.1668, allocations: 367 kB / 435.1 MB, free: 12.06 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001221/0.1669, allocations: 112.9 kB / 435.2 MB, free: 11.93 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.323e-05/0.1669, allocations: 8 kB / 435.2 MB, free: 11.92 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001494/0.1671, allocations: 15.92 kB / 435.2 MB, free: 11.91 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.408e-05/0.1671, allocations: 3.938 kB / 435.2 MB, free: 11.9 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.217e-05/0.1671, allocations: 8 kB / 435.2 MB, free: 11.89 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001238/0.1672, allocations: 140.3 kB / 435.3 MB, free: 11.76 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1672, allocations: 0 / 435.3 MB, free: 11.76 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003295/0.1676, allocations: 31.95 kB / 435.4 MB, free: 11.73 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (hold1.compDelay.ubuf) * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 18 * 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.000949/0.1685, allocations: 0.9484 MB / 436.3 MB, free: 10.74 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003174/0.1688, allocations: 112.6 kB / 436.4 MB, free: 10.63 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.1688, allocations: 256 / 436.4 MB, free: 10.63 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 5.211e-05/0.1689, allocations: 27.86 kB / 436.5 MB, free: 10.61 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006789/0.1696, allocations: 106.7 kB / 436.6 MB, free: 10.5 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002511/0.1721, allocations: 2.073 MB / 438.6 MB, free: 8.234 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004021/0.1725, allocations: 0.7319 MB / 439.4 MB, free: 7.477 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.19e-05/0.1725, allocations: 13.55 kB / 439.4 MB, free: 7.465 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.855e-05/0.1726, allocations: 39.42 kB / 439.4 MB, free: 7.426 MB / 366.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1726, allocations: 4 kB / 439.4 MB, free: 7.422 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02445/0.1971, allocations: 3.569 MB / 443 MB, free: 4.023 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.202/8.399, allocations: 19.78 kB / 443 MB, free: 4.004 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_HoldWithDAeffects2_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_HoldWithDAeffects2.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/HoldWithDAeffects2/HoldWithDAeffects2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.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.500976909010205]