Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|hold1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|hold1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001704/0.001704, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.489/1.489, allocations: 225.4 MB / 240.1 MB, free: 15.03 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009437/0.0009436, allocations: 91.8 kB / 292.1 MB, free: 6.008 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.499e-05/3.5e-05, allocations: 4 kB / 350.5 MB, free: 2.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1085/0.1085, allocations: 51.49 MB / 402 MB, free: 14.98 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.366/0.4746, allocations: 78.06 MB / 480.1 MB, free: 11.34 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000234/0.4749, allocations: 75.56 kB / 480.2 MB, free: 11.3 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00427/0.4792, allocations: 1.721 MB / 481.9 MB, free: 9.844 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.4792, allocations: 0 / 481.9 MB, free: 9.844 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.01e-05/0.4792, allocations: 8 kB / 481.9 MB, free: 9.836 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0002983/0.4795, allocations: 353.6 kB / 482.2 MB, free: 9.453 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.258e-05/0.4796, allocations: 8.031 kB / 482.2 MB, free: 9.445 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001433/0.4797, allocations: 23.89 kB / 482.3 MB, free: 9.426 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001718/0.4799, allocations: 196.5 kB / 482.5 MB, free: 9.195 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.494e-05/0.4799, allocations: 8.609 kB / 482.5 MB, free: 9.191 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.473e-05/0.4799, allocations: 4 kB / 482.5 MB, free: 9.188 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002252/0.4802, allocations: 122.8 kB / 482.6 MB, free: 9.062 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.065e-05/0.4802, allocations: 4.812 kB / 482.6 MB, free: 9.059 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.213e-05/0.4802, allocations: 7.875 kB / 482.6 MB, free: 9.055 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.531e-06/0.4802, allocations: 0 / 482.6 MB, free: 9.055 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.243e-05/0.4803, allocations: 12.55 kB / 482.6 MB, free: 9.047 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003486/0.4806, allocations: 383.1 kB / 483 MB, free: 8.629 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.839e-05/0.4807, allocations: 85.42 kB / 483.1 MB, free: 8.516 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.353e-05/0.4808, allocations: 43.31 kB / 483.1 MB, free: 8.469 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.283e-05/0.4808, allocations: 7.938 kB / 483.1 MB, free: 8.461 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.485e-05/0.4808, allocations: 31.97 kB / 483.2 MB, free: 8.422 MB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 1.883e-06/0.4808, allocations: 0.9844 kB / 483.2 MB, free: 8.422 MB / 346.7 MB Notification: Performance of matching and sorting (n=6): time 0.0001888/0.481, allocations: 85.02 kB / 483.2 MB, free: 8.344 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.479e-05/0.4811, allocations: 132.5 kB / 483.4 MB, free: 8.184 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001107/0.4812, allocations: 135.2 kB / 483.5 MB, free: 8.059 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.13e-05/0.4812, allocations: 25.7 kB / 483.5 MB, free: 8.027 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.618e-05/0.4813, allocations: 88.06 kB / 483.6 MB, free: 7.941 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.852e-05/0.4813, allocations: 11.53 kB / 483.6 MB, free: 7.934 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.737e-06/0.4813, allocations: 0 / 483.6 MB, free: 7.934 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.425e-05/0.4814, allocations: 318.8 kB / 483.9 MB, free: 7.617 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.575e-05/0.4814, allocations: 15.67 kB / 484 MB, free: 7.605 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.375e-05/0.4814, allocations: 36.92 kB / 484 MB, free: 7.559 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.237e-05/0.4815, allocations: 12 kB / 484 MB, free: 7.547 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.4815, allocations: 0 / 484 MB, free: 7.547 MB / 346.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 9.757e-05/0.4816, allocations: 84.11 kB / 484.1 MB, free: 7.469 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.76e-05/0.4816, allocations: 5.594 kB / 484.1 MB, free: 7.465 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.135e-06/0.4816, allocations: 7.984 kB / 484.1 MB, free: 7.457 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.543e-05/0.4817, allocations: 0 / 484.1 MB, free: 7.457 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.571e-05/0.4818, allocations: 15.94 kB / 484.1 MB, free: 7.441 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.388e-06/0.4818, allocations: 1.328 kB / 484.1 MB, free: 7.441 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.88e-05/0.4818, allocations: 12.48 kB / 484.1 MB, free: 7.43 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.046e-05/0.4819, allocations: 4 kB / 484.1 MB, free: 7.426 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (6): * Single equations (assignments): 6 * 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 5.696e-05/0.4819, allocations: 108.8 kB / 484.2 MB, free: 7.316 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.378e-05/0.482, allocations: 61.12 kB / 484.3 MB, free: 7.254 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.026e-05/0.4821, allocations: 15.45 kB / 484.3 MB, free: 7.246 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.4821, allocations: 0 / 484.3 MB, free: 7.246 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.434e-06/0.4821, allocations: 0.9375 kB / 484.3 MB, free: 7.246 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.793e-06/0.4821, allocations: 8.812 kB / 484.3 MB, free: 7.238 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002004/0.4823, allocations: 177 kB / 484.5 MB, free: 7.027 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.4823, allocations: 0 / 484.5 MB, free: 7.027 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.661e-05/0.4824, allocations: 15.98 kB / 484.5 MB, free: 7.012 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.087e-06/0.4824, allocations: 3.953 kB / 484.5 MB, free: 7.008 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.184e-05/0.4824, allocations: 7.438 kB / 484.5 MB, free: 7.004 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.4824, allocations: 0 / 484.5 MB, free: 7.004 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.4825, allocations: 0 / 484.5 MB, free: 7.004 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00017/0.4826, allocations: 292.8 kB / 484.8 MB, free: 6.691 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.255e-05/0.4827, allocations: 92.62 kB / 484.9 MB, free: 6.586 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.837e-05/0.4827, allocations: 7.984 kB / 484.9 MB, free: 6.578 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001047/0.4828, allocations: 13.52 kB / 484.9 MB, free: 6.57 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.78e-05/0.4829, allocations: 0 / 484.9 MB, free: 6.57 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.11e-06/0.4829, allocations: 7.938 kB / 484.9 MB, free: 6.562 MB / 346.7 MB Notification: Performance of sorting global known variables: time 5.175e-05/0.4829, allocations: 110.1 kB / 485 MB, free: 6.465 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4829, allocations: 0 / 485 MB, free: 6.465 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002475/0.4832, allocations: 11.94 kB / 485 MB, free: 6.457 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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.0001154/0.4833, allocations: 107.1 kB / 485.1 MB, free: 6.34 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001002/0.4834, allocations: 35.62 kB / 485.2 MB, free: 6.312 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.4834, allocations: 0 / 485.2 MB, free: 6.312 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.863e-05/0.4835, allocations: 4 kB / 485.2 MB, free: 6.309 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002814/0.4837, allocations: 27.52 kB / 485.2 MB, free: 6.289 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002813/0.484, allocations: 131.5 kB / 485.3 MB, free: 6.141 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001595/0.4842, allocations: 0.7043 MB / 486 MB, free: 5.41 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 3.895e-05/0.4843, allocations: 0.5625 kB / 486 MB, free: 5.41 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.405e-05/0.4843, allocations: 15.98 kB / 486.1 MB, free: 5.395 MB / 346.7 MB Notification: Performance of SimCode: time 5.11e-07/0.4843, allocations: 0 / 486.1 MB, free: 5.395 MB / 346.7 MB Notification: Performance of Templates: time 0.002539/0.4868, allocations: 0.6301 MB / 486.7 MB, free: 4.816 MB / 346.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/Hold/Hold.csv","../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sample1.y,shiftSample1.y,hold1.y Variables in the result:hold1.y,hold1.y_start,periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample1.y,shiftSample1.resolution,shiftSample1.shiftCounter,shiftSample1.y,sine.amplitude,sine.f,sine.offset,sine.phase,sine.startTime,time