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) 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) 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: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|hold1.y|// shiftSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|hold1.y|// shiftSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001023/0.001023, allocations: 102 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001372/0.001372, allocations: 192.1 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.488/1.488, allocations: 227.7 MB / 246.4 MB, free: 11.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003636/0.000364, allocations: 8 kB / 307.1 MB, free: 1.141 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1499/0.1503, allocations: 51.52 MB / 358.6 MB, free: 13.62 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2): time 0.002494/0.1528, allocations: 1.543 MB / 360.2 MB, free: 12.06 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001357/0.1542, allocations: 0.6551 MB / 360.8 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001369/0.1544, allocations: 4 kB / 360.8 MB, free: 11.4 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001499/0.1545, allocations: 15.86 kB / 360.8 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001194/0.1547, allocations: 15.84 kB / 360.9 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004912/0.1552, allocations: 95.28 kB / 361 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002158/0.1554, allocations: 123.6 kB / 361.1 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001526/0.1555, allocations: 45.7 kB / 361.1 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001632/0.1557, allocations: 51.72 kB / 361.2 MB, free: 11.06 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.403e-05/0.1558, allocations: 35.78 kB / 361.2 MB, free: 11.03 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.773e-05/0.1558, allocations: 0 / 361.2 MB, free: 11.03 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.278e-05/0.1559, allocations: 12 kB / 361.2 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.987e-05/0.156, allocations: 23.84 kB / 361.2 MB, free: 10.99 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.911e-05/0.156, allocations: 45.64 kB / 361.3 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001727/0.1562, allocations: 103.7 kB / 361.4 MB, free: 10.84 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.754e-06/0.1562, allocations: 0 / 361.4 MB, free: 10.84 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.1562, allocations: 0 / 361.4 MB, free: 10.84 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.332e-06/0.1562, allocations: 0 / 361.4 MB, free: 10.84 MB / 302.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.0006961/0.1569, allocations: 447 kB / 361.8 MB, free: 10.36 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.518e-05/0.157, allocations: 12.03 kB / 361.8 MB, free: 10.34 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001707/0.1572, allocations: 27.72 kB / 361.9 MB, free: 10.32 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003406/0.1575, allocations: 226.9 kB / 362.1 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.711e-05/0.1575, allocations: 8.188 kB / 362.1 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.423e-05/0.1576, allocations: 8 kB / 362.1 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006977/0.1583, allocations: 306.1 kB / 362.4 MB, free: 9.715 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.234e-05/0.1583, allocations: 4 kB / 362.4 MB, free: 9.711 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.917e-05/0.1583, allocations: 4 kB / 362.4 MB, free: 9.707 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.656e-06/0.1583, allocations: 4 kB / 362.4 MB, free: 9.703 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002186/0.1586, allocations: 83.89 kB / 362.5 MB, free: 9.621 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000714/0.1593, allocations: 435.3 kB / 362.9 MB, free: 9.133 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005402/0.1598, allocations: 322 kB / 363.2 MB, free: 8.754 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002224/0.1601, allocations: 116.4 kB / 363.3 MB, free: 8.625 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.858e-05/0.1601, allocations: 8 kB / 363.4 MB, free: 8.617 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.594e-05/0.1602, allocations: 38.5 kB / 363.4 MB, free: 8.57 MB / 302.1 MB Notification: Performance of pre-optimization done (n=18): time 1.513e-06/0.1602, allocations: 0 / 363.4 MB, free: 8.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=18): time 0.0007088/0.1609, allocations: 237.2 kB / 363.6 MB, free: 8.332 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001627/0.1611, allocations: 196.3 kB / 363.8 MB, free: 8.098 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00021/0.1613, allocations: 182.3 kB / 364 MB, free: 7.906 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.677e-05/0.1613, allocations: 29.7 kB / 364 MB, free: 7.871 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001204/0.1615, allocations: 100.5 kB / 364.1 MB, free: 7.766 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.213e-05/0.1615, allocations: 15.89 kB / 364.1 MB, free: 7.75 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.015e-05/0.1615, allocations: 4 kB / 364.1 MB, free: 7.746 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001798/0.1617, allocations: 326.8 kB / 364.5 MB, free: 7.418 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.436e-05/0.1618, allocations: 31.98 kB / 364.5 MB, free: 7.387 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001977/0.162, allocations: 139.4 kB / 364.6 MB, free: 7.195 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000132/0.1621, allocations: 47.95 kB / 364.7 MB, free: 7.148 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.1622, allocations: 0 / 364.7 MB, free: 7.148 MB / 302.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003035/0.1625, allocations: 177.1 kB / 364.8 MB, free: 6.969 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.587e-05/0.1625, allocations: 11.98 kB / 364.9 MB, free: 6.957 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.113e-05/0.1625, allocations: 4 kB / 364.9 MB, free: 6.953 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.051e-05/0.1625, allocations: 8.484 kB / 364.9 MB, free: 6.945 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001524/0.1627, allocations: 43.92 kB / 364.9 MB, free: 6.902 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.416e-05/0.1627, allocations: 8 kB / 364.9 MB, free: 6.895 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001042/0.1628, allocations: 15.84 kB / 364.9 MB, free: 6.879 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.333e-05/0.1629, allocations: 19.98 kB / 365 MB, free: 6.859 MB / 302.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001728/0.1631, allocations: 133.7 kB / 365.1 MB, free: 6.719 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003145/0.1634, allocations: 153.3 kB / 365.2 MB, free: 6.562 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.263e-05/0.1635, allocations: 25.39 kB / 365.3 MB, free: 6.539 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.256e-06/0.1635, allocations: 7.953 kB / 365.3 MB, free: 6.531 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.1635, allocations: 0 / 365.3 MB, free: 6.531 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/0.1635, allocations: 0 / 365.3 MB, free: 6.531 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000334/0.1638, allocations: 221.5 kB / 365.5 MB, free: 6.266 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.859e-06/0.1639, allocations: 4 kB / 365.5 MB, free: 6.262 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001456/0.164, allocations: 39.91 kB / 365.5 MB, free: 6.223 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.931e-06/0.164, allocations: 8.031 kB / 365.5 MB, free: 6.215 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.991e-05/0.164, allocations: 4 kB / 365.5 MB, free: 6.211 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.844e-06/0.1641, allocations: 0 / 365.5 MB, free: 6.211 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.1641, allocations: 7.891 kB / 365.5 MB, free: 6.203 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004902/0.1646, allocations: 373 kB / 365.9 MB, free: 5.812 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001233/0.1647, allocations: 112.8 kB / 366 MB, free: 5.684 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.208e-05/0.1647, allocations: 8 kB / 366 MB, free: 5.676 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001431/0.1649, allocations: 16 kB / 366 MB, free: 5.66 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.813e-05/0.1649, allocations: 7.938 kB / 366.1 MB, free: 5.652 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.162e-05/0.165, allocations: 8 kB / 366.1 MB, free: 5.645 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001261/0.1651, allocations: 136.4 kB / 366.2 MB, free: 5.512 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1651, allocations: 0 / 366.2 MB, free: 5.512 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003643/0.1655, allocations: 20 kB / 366.2 MB, free: 5.492 MB / 302.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001682/0.1656, allocations: 107.4 kB / 366.3 MB, free: 5.379 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003362/0.166, allocations: 123.8 kB / 366.4 MB, free: 5.258 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.417e-06/0.166, allocations: 5 kB / 366.4 MB, free: 5.254 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.103e-05/0.1661, allocations: 12.06 kB / 366.5 MB, free: 5.242 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007151/0.1668, allocations: 118 kB / 366.6 MB, free: 5.133 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008543/0.1677, allocations: 361.7 kB / 366.9 MB, free: 4.738 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004441/0.1681, allocations: 0.7283 MB / 367.7 MB, free: 3.984 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.294e-05/0.1682, allocations: 17.55 kB / 367.7 MB, free: 3.969 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.342e-05/0.1683, allocations: 15.44 kB / 367.7 MB, free: 3.957 MB / 302.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1683, allocations: 4 kB / 367.7 MB, free: 3.953 MB / 302.1 MB Notification: Performance of Templates: time 0.00544/0.1737, allocations: 1.535 MB / 369.2 MB, free: 2.434 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.makefile (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 & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/HoldWithDAeffects2/HoldWithDAeffects2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sample1.y,hold1.y,// shiftSample1.y Variables in the result:hold1.bits,hold1.compDelay.resolution,hold1.compDelay.shiftCounter,hold1.computationalDelay,hold1.hold1.y_start,hold1.limited,hold1.limiter.uMax,hold1.limiter.uMin,hold1.quantized,hold1.resolution,hold1.shiftCounter,hold1.y,hold1.yMax,hold1.yMin,hold1.y_start,periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample1.y,shiftSample1.resolution,shiftSample1.shiftCounter,sine.amplitude,sine.continuous,sine.f,sine.offset,sine.phase,sine.startTime,time