Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.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.ClockSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample") translateModel(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009784/0.0009784, allocations: 199.5 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.373/1.373, allocations: 225.6 MB / 234.8 MB, free: 3.293 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007952/0.0007953, allocations: 89.75 kB / 286.7 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.679e-05/1.716e-05, allocations: 0 / 343.7 MB, free: 8.309 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1211/0.1211, allocations: 51.48 MB / 395.2 MB, free: 4.785 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3387/0.4599, allocations: 77.12 MB / 472.3 MB, free: 14.38 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002243/0.4601, allocations: 77.7 kB / 472.4 MB, free: 14.35 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004344/0.4645, allocations: 1.604 MB / 474 MB, free: 13.35 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.4645, allocations: 0 / 474 MB, free: 13.35 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.031e-05/0.4645, allocations: 8 kB / 474 MB, free: 13.34 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003086/0.4649, allocations: 350.5 kB / 474.3 MB, free: 12.97 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.4649, allocations: 11.97 kB / 474.3 MB, free: 12.96 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000151/0.4651, allocations: 21.17 kB / 474.4 MB, free: 12.94 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001691/0.4652, allocations: 189.3 kB / 474.5 MB, free: 12.73 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.893e-05/0.4653, allocations: 4 kB / 474.5 MB, free: 12.72 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.129e-05/0.4653, allocations: 3.609 kB / 474.5 MB, free: 12.72 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.211e-05/0.4654, allocations: 23.06 kB / 474.6 MB, free: 12.71 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001773/0.4656, allocations: 95.53 kB / 474.7 MB, free: 12.61 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.837e-06/0.4656, allocations: 0 / 474.7 MB, free: 12.61 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.111e-05/0.4656, allocations: 0.75 kB / 474.7 MB, free: 12.61 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-06/0.4656, allocations: 0 / 474.7 MB, free: 12.61 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002832/0.4659, allocations: 253.6 kB / 474.9 MB, free: 12.35 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.996e-05/0.466, allocations: 40.03 kB / 474.9 MB, free: 12.29 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.228e-05/0.466, allocations: 14.59 kB / 475 MB, free: 12.27 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2e-05/0.466, allocations: 0 / 475 MB, free: 12.27 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.072e-05/0.466, allocations: 38.84 kB / 475 MB, free: 12.23 MB / 346.7 MB Notification: Performance of pre-optimization done (n=2): time 7.82e-07/0.466, allocations: 2.719 kB / 475 MB, free: 12.23 MB / 346.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001568/0.4662, allocations: 50.12 kB / 475.1 MB, free: 12.18 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.807e-05/0.4663, allocations: 77.81 kB / 475.1 MB, free: 12.09 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001014/0.4664, allocations: 125.8 kB / 475.2 MB, free: 11.97 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.646e-06/0.4664, allocations: 25.7 kB / 475.3 MB, free: 11.94 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.133e-05/0.4664, allocations: 92.34 kB / 475.4 MB, free: 11.86 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.45e-05/0.4664, allocations: 8.609 kB / 475.4 MB, free: 11.85 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.366e-06/0.4664, allocations: 3.938 kB / 475.4 MB, free: 11.84 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.212e-05/0.4665, allocations: 316 kB / 475.7 MB, free: 11.53 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.293e-05/0.4665, allocations: 4.75 kB / 475.7 MB, free: 11.53 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.266e-05/0.4665, allocations: 9.719 kB / 475.7 MB, free: 11.51 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.034e-05/0.4666, allocations: 12.66 kB / 475.7 MB, free: 11.5 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.4666, allocations: 4.75 kB / 475.7 MB, free: 11.5 MB / 346.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.895e-05/0.4666, allocations: 43.89 kB / 475.8 MB, free: 11.45 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.279e-05/0.4667, allocations: 4 kB / 475.8 MB, free: 11.45 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.708e-06/0.4667, allocations: 0 / 475.8 MB, free: 11.45 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.17e-05/0.4667, allocations: 0 / 475.8 MB, free: 11.45 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.313e-05/0.4668, allocations: 10.25 kB / 475.8 MB, free: 11.44 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.234e-06/0.4668, allocations: 5.469 kB / 475.8 MB, free: 11.44 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.429e-05/0.4668, allocations: 4.797 kB / 475.8 MB, free: 11.44 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.021e-06/0.4668, allocations: 4.672 kB / 475.8 MB, free: 11.43 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.274e-05/0.4669, allocations: 108 kB / 475.9 MB, free: 11.32 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.101e-05/0.4669, allocations: 42.95 kB / 475.9 MB, free: 11.28 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.168e-05/0.467, allocations: 12.89 kB / 475.9 MB, free: 11.27 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.504e-06/0.467, allocations: 0.75 kB / 475.9 MB, free: 11.27 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.467, allocations: 0 / 475.9 MB, free: 11.27 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.467, allocations: 0 / 475.9 MB, free: 11.27 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001227/0.4671, allocations: 145.6 kB / 476.1 MB, free: 11.1 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.32e-07/0.4671, allocations: 0 / 476.1 MB, free: 11.1 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.166e-05/0.4672, allocations: 11.41 kB / 476.1 MB, free: 11.09 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/0.4672, allocations: 4.75 kB / 476.1 MB, free: 11.09 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.506e-06/0.4672, allocations: 7.188 kB / 476.1 MB, free: 11.09 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.4672, allocations: 0.75 kB / 476.1 MB, free: 11.09 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.4672, allocations: 0 / 476.1 MB, free: 11.09 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.038e-05/0.4673, allocations: 164.1 kB / 476.3 MB, free: 10.91 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.071e-05/0.4674, allocations: 92.91 kB / 476.4 MB, free: 10.8 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.646e-05/0.4674, allocations: 4 kB / 476.4 MB, free: 10.8 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.66e-05/0.4675, allocations: 1.547 kB / 476.4 MB, free: 10.8 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.354e-05/0.4675, allocations: 4.562 kB / 476.4 MB, free: 10.8 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.236e-06/0.4675, allocations: 0 / 476.4 MB, free: 10.8 MB / 346.7 MB Notification: Performance of sorting global known variables: time 4.723e-05/0.4676, allocations: 108.7 kB / 476.5 MB, free: 10.71 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4676, allocations: 0 / 476.5 MB, free: 10.71 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000219/0.4678, allocations: 4 kB / 476.5 MB, free: 10.7 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.341e-05/0.4679, allocations: 104 kB / 476.6 MB, free: 10.59 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 6.908e-05/0.468, allocations: 12.59 kB / 476.6 MB, free: 10.59 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.262e-06/0.468, allocations: 0 / 476.6 MB, free: 10.59 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.315e-05/0.468, allocations: 8.5 kB / 476.6 MB, free: 10.58 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002589/0.4683, allocations: 20.05 kB / 476.6 MB, free: 10.57 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001967/0.4685, allocations: 86.08 kB / 476.7 MB, free: 10.47 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001273/0.4686, allocations: 0.6981 MB / 477.4 MB, free: 9.754 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 2.716e-05/0.4686, allocations: 4.656 kB / 477.4 MB, free: 9.75 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.663e-05/0.4687, allocations: 10.95 kB / 477.4 MB, free: 9.742 MB / 346.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4687, allocations: 0 / 477.4 MB, free: 9.742 MB / 346.7 MB Notification: Performance of Templates: time 0.00228/0.4709, allocations: 488.7 kB / 477.9 MB, free: 9.488 MB / 346.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/ClockSignals/ShiftSample/ShiftSample.csv","../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sample1.y Variables in the result: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