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.001803/0.001803, allocations: 202.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.319/1.319, allocations: 225.6 MB / 234.8 MB, free: 3.277 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009291/0.0009294, allocations: 102.8 kB / 286.7 MB, free: 5.281 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.567e-05/1.58e-05, allocations: 4 kB / 343.7 MB, free: 8.289 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1065, allocations: 51.48 MB / 395.2 MB, free: 4.766 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3141/0.4206, allocations: 77.4 MB / 472.6 MB, free: 14.2 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002005/0.4208, allocations: 76.58 kB / 472.6 MB, free: 14.16 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004415/0.4253, allocations: 1.71 MB / 474.4 MB, free: 13.11 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.4253, allocations: 0 / 474.4 MB, free: 13.11 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.064e-05/0.4253, allocations: 4 kB / 474.4 MB, free: 13.1 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.0003132/0.4256, allocations: 366.2 kB / 474.7 MB, free: 12.72 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.636e-05/0.4257, allocations: 8.031 kB / 474.7 MB, free: 12.71 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001322/0.4258, allocations: 19.25 kB / 474.7 MB, free: 12.7 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001638/0.426, allocations: 200.9 kB / 474.9 MB, free: 12.47 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.36e-05/0.426, allocations: 4.859 kB / 474.9 MB, free: 12.46 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.658e-06/0.426, allocations: 0.7031 kB / 474.9 MB, free: 12.46 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.196e-05/0.4261, allocations: 28.88 kB / 475 MB, free: 12.45 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001911/0.4263, allocations: 115.2 kB / 475.1 MB, free: 12.33 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.917e-06/0.4264, allocations: 0 / 475.1 MB, free: 12.33 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.044e-05/0.4264, allocations: 7.938 kB / 475.1 MB, free: 12.32 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.817e-06/0.4264, allocations: 0 / 475.1 MB, free: 12.32 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003079/0.4267, allocations: 344.4 kB / 475.4 MB, free: 11.97 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.289e-05/0.4268, allocations: 86.44 kB / 475.5 MB, free: 11.86 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.842e-05/0.4268, allocations: 42.69 kB / 475.6 MB, free: 11.81 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.886e-05/0.4269, allocations: 0.6562 kB / 475.6 MB, free: 11.81 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.388e-05/0.4269, allocations: 38.14 kB / 475.6 MB, free: 11.77 MB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 1.102e-06/0.4269, allocations: 0 / 475.6 MB, free: 11.77 MB / 346.7 MB Notification: Performance of matching and sorting (n=6): time 0.000195/0.4271, allocations: 72.58 kB / 475.7 MB, free: 11.7 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.799e-05/0.4271, allocations: 133.6 kB / 475.8 MB, free: 11.54 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.913e-05/0.4272, allocations: 129.4 kB / 475.9 MB, free: 11.43 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.736e-06/0.4272, allocations: 25.7 kB / 475.9 MB, free: 11.39 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.839e-05/0.4273, allocations: 89.17 kB / 476 MB, free: 11.31 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.453e-05/0.4273, allocations: 7.953 kB / 476 MB, free: 11.3 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.577e-06/0.4273, allocations: 4.125 kB / 476 MB, free: 11.3 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.775e-05/0.4274, allocations: 323 kB / 476.4 MB, free: 10.98 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.655e-05/0.4274, allocations: 4 kB / 476.4 MB, free: 10.98 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.433e-05/0.4274, allocations: 37.7 kB / 476.4 MB, free: 10.93 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.781e-05/0.4274, allocations: 16.67 kB / 476.4 MB, free: 10.92 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.4275, allocations: 0 / 476.4 MB, free: 10.92 MB / 346.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 9.202e-05/0.4276, allocations: 72.84 kB / 476.5 MB, free: 10.86 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.226e-05/0.4276, allocations: 4 kB / 476.5 MB, free: 10.85 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.4276, allocations: 4.703 kB / 476.5 MB, free: 10.85 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.195e-05/0.4276, allocations: 0 / 476.5 MB, free: 10.85 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.263e-05/0.4277, allocations: 18.61 kB / 476.5 MB, free: 10.83 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.128e-06/0.4277, allocations: 160 / 476.5 MB, free: 10.83 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.683e-05/0.4278, allocations: 11.92 kB / 476.5 MB, free: 10.82 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.943e-06/0.4278, allocations: 4 kB / 476.5 MB, free: 10.82 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 4.468e-05/0.4278, allocations: 106.3 kB / 476.6 MB, free: 10.71 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.5e-05/0.4279, allocations: 58.53 kB / 476.7 MB, free: 10.65 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.248e-05/0.4279, allocations: 14.25 kB / 476.7 MB, free: 10.65 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.943e-06/0.428, allocations: 0 / 476.7 MB, free: 10.65 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.428, allocations: 4 kB / 476.7 MB, free: 10.64 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.428, allocations: 4.062 kB / 476.7 MB, free: 10.64 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001724/0.4281, allocations: 152.1 kB / 476.9 MB, free: 10.47 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.4282, allocations: 0 / 476.9 MB, free: 10.47 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.388e-05/0.4282, allocations: 21.36 kB / 476.9 MB, free: 10.46 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.4282, allocations: 0 / 476.9 MB, free: 10.46 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.844e-06/0.4283, allocations: 4 kB / 476.9 MB, free: 10.46 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.386e-06/0.4283, allocations: 5.406 kB / 476.9 MB, free: 10.45 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.4283, allocations: 0 / 476.9 MB, free: 10.45 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001276/0.4284, allocations: 294.1 kB / 477.2 MB, free: 10.14 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.217e-05/0.4285, allocations: 92.08 kB / 477.3 MB, free: 10.04 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.554e-05/0.4285, allocations: 1.172 kB / 477.3 MB, free: 10.04 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001038/0.4286, allocations: 7.984 kB / 477.3 MB, free: 10.04 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.656e-05/0.4286, allocations: 8 kB / 477.3 MB, free: 10.03 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.21e-06/0.4286, allocations: 5.484 kB / 477.3 MB, free: 10.03 MB / 346.7 MB Notification: Performance of sorting global known variables: time 5.598e-05/0.4287, allocations: 113.3 kB / 477.4 MB, free: 9.934 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4287, allocations: 0 / 477.4 MB, free: 9.934 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002855/0.429, allocations: 4 kB / 477.4 MB, free: 9.93 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 9.769e-05/0.4291, allocations: 96.42 kB / 477.5 MB, free: 9.824 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 8.312e-05/0.4292, allocations: 32.38 kB / 477.5 MB, free: 9.801 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.684e-06/0.4292, allocations: 4.125 kB / 477.5 MB, free: 9.797 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.594e-05/0.4292, allocations: 7.938 kB / 477.5 MB, free: 9.789 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002899/0.4295, allocations: 30.7 kB / 477.6 MB, free: 9.77 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002353/0.4298, allocations: 122.4 kB / 477.7 MB, free: 9.641 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001215/0.4299, allocations: 0.7031 MB / 478.4 MB, free: 8.922 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 3.766e-05/0.4299, allocations: 2.391 kB / 478.4 MB, free: 8.922 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.054e-05/0.43, allocations: 11.44 kB / 478.4 MB, free: 8.91 MB / 346.7 MB Notification: Performance of SimCode: time 2.51e-07/0.43, allocations: 0 / 478.4 MB, free: 8.91 MB / 346.7 MB Notification: Performance of Templates: time 0.002319/0.4323, allocations: 0.5932 MB / 479 MB, free: 8.582 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