Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.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.HoldWithDAeffects1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|hold1.y|// shiftSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|hold1.y|// shiftSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001028/0.001028, allocations: 89.64 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009649/0.0009649, allocations: 204.7 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.534/1.534, allocations: 227.2 MB / 245.9 MB, free: 12.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003296/0.0003296, allocations: 4 kB / 306.6 MB, free: 1.645 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1516/0.152, allocations: 51.49 MB / 358.1 MB, free: 14.15 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1): time 0.002433/0.1544, allocations: 1.531 MB / 359.6 MB, free: 12.61 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001275/0.1557, allocations: 0.6277 MB / 360.2 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000137/0.1559, allocations: 11.88 kB / 360.2 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 4.558e-05/0.1559, allocations: 7.875 kB / 360.2 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002071/0.1561, allocations: 31.88 kB / 360.3 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004537/0.1566, allocations: 86.91 kB / 360.4 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001821/0.1568, allocations: 99.72 kB / 360.5 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001592/0.157, allocations: 45.45 kB / 360.5 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001394/0.1571, allocations: 43.78 kB / 360.5 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.728e-05/0.1572, allocations: 43.72 kB / 360.6 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.702e-05/0.1572, allocations: 4 kB / 360.6 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.339e-05/0.1573, allocations: 4 kB / 360.6 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.843e-05/0.1574, allocations: 23.91 kB / 360.6 MB, free: 11.58 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.084e-05/0.1574, allocations: 45.58 kB / 360.7 MB, free: 11.53 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001599/0.1576, allocations: 95.8 kB / 360.8 MB, free: 11.44 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.305e-06/0.1576, allocations: 0 / 360.8 MB, free: 11.44 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.1576, allocations: 0 / 360.8 MB, free: 11.44 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.899e-06/0.1576, allocations: 4 kB / 360.8 MB, free: 11.43 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.0005626/0.1582, allocations: 435.1 kB / 361.2 MB, free: 10.96 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.973e-05/0.1582, allocations: 12.03 kB / 361.2 MB, free: 10.95 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001719/0.1584, allocations: 31.8 kB / 361.2 MB, free: 10.92 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002803/0.1587, allocations: 236.5 kB / 361.5 MB, free: 10.64 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.7e-05/0.1587, allocations: 4.188 kB / 361.5 MB, free: 10.64 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.854e-05/0.1587, allocations: 11.95 kB / 361.5 MB, free: 10.63 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00058/0.1593, allocations: 296.7 kB / 361.8 MB, free: 10.31 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.728e-06/0.1593, allocations: 0 / 361.8 MB, free: 10.31 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.488e-05/0.1594, allocations: 4 kB / 361.8 MB, free: 10.31 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.976e-06/0.1594, allocations: 4 kB / 361.8 MB, free: 10.3 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002288/0.1596, allocations: 83.83 kB / 361.9 MB, free: 10.22 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005055/0.1601, allocations: 423.5 kB / 362.3 MB, free: 9.746 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004928/0.1606, allocations: 306.3 kB / 362.6 MB, free: 9.383 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.283e-05/0.1607, allocations: 12.11 kB / 362.6 MB, free: 9.371 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.26e-05/0.1607, allocations: 38.5 kB / 362.6 MB, free: 9.324 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 3.086e-06/0.1607, allocations: 4 kB / 362.6 MB, free: 9.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0006015/0.1614, allocations: 241.4 kB / 362.9 MB, free: 9.078 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001493/0.1615, allocations: 191.9 kB / 363 MB, free: 8.848 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001809/0.1617, allocations: 179.1 kB / 363.2 MB, free: 8.664 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.193e-05/0.1617, allocations: 25.7 kB / 363.2 MB, free: 8.633 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.33e-05/0.1618, allocations: 104.1 kB / 363.3 MB, free: 8.527 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.396e-05/0.1619, allocations: 15.89 kB / 363.4 MB, free: 8.512 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.07e-06/0.1619, allocations: 0 / 363.4 MB, free: 8.512 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001718/0.162, allocations: 334.8 kB / 363.7 MB, free: 8.176 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.592e-05/0.1621, allocations: 23.98 kB / 363.7 MB, free: 8.152 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000149/0.1623, allocations: 133.3 kB / 363.8 MB, free: 7.973 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001044/0.1624, allocations: 43.97 kB / 363.9 MB, free: 7.93 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.1624, allocations: 0 / 363.9 MB, free: 7.93 MB / 302.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.00028/0.1627, allocations: 169.1 kB / 364 MB, free: 7.758 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.978e-05/0.1627, allocations: 4 kB / 364.1 MB, free: 7.754 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.268e-06/0.1627, allocations: 7.938 kB / 364.1 MB, free: 7.746 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.964e-05/0.1627, allocations: 8.5 kB / 364.1 MB, free: 7.738 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001339/0.1629, allocations: 39.92 kB / 364.1 MB, free: 7.699 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.122e-05/0.1629, allocations: 7.984 kB / 364.1 MB, free: 7.691 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.251e-05/0.163, allocations: 15.94 kB / 364.1 MB, free: 7.676 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.916e-05/0.163, allocations: 8 kB / 364.1 MB, free: 7.668 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 17 * 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.0001364/0.1632, allocations: 137.7 kB / 364.3 MB, free: 7.523 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003058/0.1635, allocations: 153.3 kB / 364.4 MB, free: 7.367 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.777e-05/0.1636, allocations: 25.41 kB / 364.4 MB, free: 7.344 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.128e-06/0.1636, allocations: 0 / 364.4 MB, free: 7.344 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.172e-05/0.1636, allocations: 11.98 kB / 364.5 MB, free: 7.332 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.86e-06/0.1636, allocations: 0 / 364.5 MB, free: 7.332 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003138/0.1639, allocations: 217.5 kB / 364.7 MB, free: 7.07 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-06/0.1639, allocations: 480 / 364.7 MB, free: 7.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001399/0.1641, allocations: 40 kB / 364.7 MB, free: 7.031 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.866e-06/0.1641, allocations: 4 kB / 364.7 MB, free: 7.027 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.726e-05/0.1641, allocations: 8 kB / 364.7 MB, free: 7.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.1641, allocations: 3.938 kB / 364.7 MB, free: 7.016 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.1641, allocations: 7.938 kB / 364.7 MB, free: 7.008 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004918/0.1646, allocations: 415.9 kB / 365.1 MB, free: 6.551 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001126/0.1647, allocations: 113.1 kB / 365.3 MB, free: 6.422 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.038e-05/0.1648, allocations: 8 kB / 365.3 MB, free: 6.414 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001419/0.1649, allocations: 19.88 kB / 365.3 MB, free: 6.395 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.397e-05/0.165, allocations: 7.984 kB / 365.3 MB, free: 6.387 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.236e-05/0.165, allocations: 8 kB / 365.3 MB, free: 6.379 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001241/0.1651, allocations: 129.2 kB / 365.4 MB, free: 6.254 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1651, allocations: 4 kB / 365.4 MB, free: 6.25 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003122/0.1655, allocations: 24 kB / 365.4 MB, free: 6.227 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: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 17 * 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.0001439/0.1656, allocations: 99.25 kB / 365.5 MB, free: 6.121 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003257/0.1659, allocations: 120.4 kB / 365.7 MB, free: 6.004 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.166, allocations: 0 / 365.7 MB, free: 6.004 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.954e-05/0.166, allocations: 19.94 kB / 365.7 MB, free: 5.984 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000611/0.1666, allocations: 98.53 kB / 365.8 MB, free: 5.891 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001456/0.1681, allocations: 0.5169 MB / 366.3 MB, free: 5.336 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004133/0.1685, allocations: 0.7358 MB / 367 MB, free: 4.574 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.438e-05/0.1686, allocations: 13.55 kB / 367 MB, free: 4.562 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.618e-05/0.1687, allocations: 19.44 kB / 367.1 MB, free: 4.543 MB / 302.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1687, allocations: 0 / 367.1 MB, free: 4.543 MB / 302.1 MB Notification: Performance of Templates: time 0.0048/0.1735, allocations: 1.475 MB / 368.5 MB, free: 3.09 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/HoldWithDAeffects1/HoldWithDAeffects1.csv","../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.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.f,sine.offset,sine.phase,sine.startTime,time