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/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.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/ModelicaServices trunk/package.mo): time 0.001366/0.001366, allocations: 117 kB / 18.41 MB, free: 4.688 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00156/0.00156, allocations: 208.5 kB / 19.36 MB, free: 3.742 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.389/1.389, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001102/0.001102, allocations: 58.94 kB / 308.4 MB, free: 15.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1019/0.103, allocations: 50.54 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample): time 0.003016/0.1061, allocations: 1.548 MB / 360.5 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001025/0.1072, allocations: 0.5687 MB / 361 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.756e-05/0.1073, allocations: 0 / 361 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 5.102e-05/0.1073, allocations: 3.938 kB / 361 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000137/0.1075, allocations: 19.86 kB / 361 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003267/0.1078, allocations: 55.77 kB / 361.1 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001052/0.1079, allocations: 43.84 kB / 361.1 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.237e-05/0.108, allocations: 28.16 kB / 361.2 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001079/0.1082, allocations: 31.8 kB / 361.2 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.738e-05/0.1082, allocations: 23.86 kB / 361.2 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.305e-05/0.1082, allocations: 0 / 361.2 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.151e-05/0.1083, allocations: 8 kB / 361.2 MB, free: 11 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.762e-05/0.1083, allocations: 15.97 kB / 361.3 MB, free: 10.99 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.852e-05/0.1084, allocations: 27.75 kB / 361.3 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001237/0.1085, allocations: 59.73 kB / 361.3 MB, free: 10.9 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.179e-06/0.1085, allocations: 8 kB / 361.3 MB, free: 10.89 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1085, allocations: 0 / 361.3 MB, free: 10.89 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.817e-06/0.1085, allocations: 0 / 361.3 MB, free: 10.89 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004447/0.109, allocations: 383 kB / 361.7 MB, free: 10.47 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.172e-05/0.109, allocations: 12.03 kB / 361.7 MB, free: 10.46 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001415/0.1092, allocations: 16.83 kB / 361.7 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002409/0.1094, allocations: 204.2 kB / 361.9 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.476e-06/0.1094, allocations: 4.375 kB / 362 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.152e-05/0.1095, allocations: 7.938 kB / 362 MB, free: 10.2 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002369/0.1097, allocations: 109 kB / 362.1 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.322e-06/0.1097, allocations: 0 / 362.1 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.744e-06/0.1097, allocations: 0 / 362.1 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/0.1098, allocations: 7.984 kB / 362.1 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.042e-05/0.1098, allocations: 15.98 kB / 362.1 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002868/0.1101, allocations: 269.7 kB / 362.4 MB, free: 9.734 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.401e-05/0.1102, allocations: 37.22 kB / 362.4 MB, free: 9.68 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.802e-05/0.1103, allocations: 41.64 kB / 362.4 MB, free: 9.633 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.505e-05/0.1103, allocations: 3.938 kB / 362.4 MB, free: 9.629 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.847e-05/0.1103, allocations: 30.56 kB / 362.5 MB, free: 9.59 MB / 302.1 MB Notification: Performance of pre-optimization done (n=2): time 1.042e-06/0.1103, allocations: 0 / 362.5 MB, free: 9.59 MB / 302.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002325/0.1106, allocations: 69.52 kB / 362.5 MB, free: 9.516 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.325e-05/0.1106, allocations: 81.36 kB / 362.6 MB, free: 9.418 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001228/0.1107, allocations: 153.7 kB / 362.8 MB, free: 9.258 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.294e-05/0.1108, allocations: 25.7 kB / 362.8 MB, free: 9.227 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.441e-05/0.1108, allocations: 92.08 kB / 362.9 MB, free: 9.133 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.331e-05/0.1108, allocations: 3.906 kB / 362.9 MB, free: 9.129 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.661e-05/0.1109, allocations: 17.72 kB / 362.9 MB, free: 9.105 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.479e-05/0.111, allocations: 314.8 kB / 363.2 MB, free: 8.789 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.211e-05/0.111, allocations: 16 kB / 363.2 MB, free: 8.773 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.619e-05/0.1111, allocations: 17.7 kB / 363.2 MB, free: 8.75 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.244e-05/0.1111, allocations: 33.64 kB / 363.3 MB, free: 8.711 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.1111, allocations: 0 / 363.3 MB, free: 8.711 MB / 302.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000111/0.1113, allocations: 57.66 kB / 363.3 MB, free: 8.648 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.238e-05/0.1113, allocations: 7.938 kB / 363.3 MB, free: 8.641 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.1113, allocations: 4 kB / 363.3 MB, free: 8.637 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.14e-05/0.1113, allocations: 0 / 363.3 MB, free: 8.637 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.517e-05/0.1114, allocations: 7.984 kB / 363.3 MB, free: 8.629 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.228e-06/0.1114, allocations: 0 / 363.3 MB, free: 8.629 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.631e-05/0.1114, allocations: 7.938 kB / 363.4 MB, free: 8.621 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.826e-06/0.1114, allocations: 3.984 kB / 363.4 MB, free: 8.617 MB / 302.1 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.575e-05/0.1115, allocations: 121.8 kB / 363.5 MB, free: 8.488 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.779e-05/0.1116, allocations: 41.67 kB / 363.5 MB, free: 8.441 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.636e-05/0.1116, allocations: 11.88 kB / 363.5 MB, free: 8.426 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.342e-06/0.1116, allocations: 0 / 363.5 MB, free: 8.426 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/0.1116, allocations: 0 / 363.5 MB, free: 8.426 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.1116, allocations: 7.922 kB / 363.5 MB, free: 8.418 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000145/0.1118, allocations: 169.7 kB / 363.7 MB, free: 8.203 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.1118, allocations: 0 / 363.7 MB, free: 8.203 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.406e-05/0.1118, allocations: 7.938 kB / 363.7 MB, free: 8.195 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/0.1119, allocations: 0 / 363.7 MB, free: 8.195 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.774e-06/0.1119, allocations: 4 kB / 363.7 MB, free: 8.191 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.477e-06/0.1119, allocations: 4.031 kB / 363.7 MB, free: 8.188 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.1119, allocations: 3.938 kB / 363.7 MB, free: 8.184 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001446/0.112, allocations: 164.2 kB / 363.9 MB, free: 8.004 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.412e-05/0.1121, allocations: 89 kB / 364 MB, free: 7.898 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.63e-05/0.1121, allocations: 4 kB / 364 MB, free: 7.895 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.819e-05/0.1122, allocations: 8.031 kB / 364 MB, free: 7.887 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.616e-05/0.1122, allocations: 7.938 kB / 364 MB, free: 7.879 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.889e-06/0.1122, allocations: 3.984 kB / 364 MB, free: 7.875 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.601e-05/0.1123, allocations: 114.8 kB / 364.1 MB, free: 7.766 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1123, allocations: 0 / 364.1 MB, free: 7.766 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002184/0.1125, allocations: 4 kB / 364.1 MB, free: 7.762 MB / 302.1 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.178e-05/0.1126, allocations: 103.2 kB / 364.2 MB, free: 7.652 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001183/0.1127, allocations: 23.98 kB / 364.2 MB, free: 7.629 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.1128, allocations: 0 / 364.2 MB, free: 7.629 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.477e-05/0.1128, allocations: 8 kB / 364.2 MB, free: 7.621 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003092/0.1131, allocations: 19.95 kB / 364.3 MB, free: 7.602 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003015/0.1134, allocations: 159.5 kB / 364.4 MB, free: 7.418 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002174/0.1137, allocations: 0.6926 MB / 365.1 MB, free: 6.699 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.862e-05/0.1137, allocations: 0 / 365.1 MB, free: 6.699 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.774e-05/0.1137, allocations: 15.44 kB / 365.1 MB, free: 6.684 MB / 302.1 MB Notification: Performance of SimCode: time 1.9e-07/0.1137, allocations: 0 / 365.1 MB, free: 6.684 MB / 302.1 MB Notification: Performance of Templates: time 0.002501/0.1162, allocations: 0.5669 MB / 365.7 MB, free: 6.129 MB / 302.1 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/ClockSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches