Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_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_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001759/0.001759, allocations: 195.3 kB / 17.38 MB, free: 4.312 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.312/1.312, allocations: 226.5 MB / 244.7 MB, free: 8.188 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007606/0.0007607, allocations: 98.5 kB / 296.8 MB, free: 6.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001959/0.000196, allocations: 8 kB / 356.7 MB, free: 10.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2057/0.2059, allocations: 51.31 MB / 408.1 MB, free: 27.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample): time 0.001426/0.2074, allocations: 1.257 MB / 409.3 MB, free: 26.46 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007528/0.2082, allocations: 497 kB / 409.8 MB, free: 25.98 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.884e-05/0.2083, allocations: 6 kB / 409.8 MB, free: 25.97 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.333e-05/0.2083, allocations: 7.922 kB / 409.8 MB, free: 25.96 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001267/0.2085, allocations: 7.922 kB / 409.8 MB, free: 25.96 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002597/0.2087, allocations: 43.89 kB / 409.9 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.462e-05/0.2088, allocations: 47.73 kB / 409.9 MB, free: 25.87 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.816e-05/0.2089, allocations: 14.91 kB / 409.9 MB, free: 25.86 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001057/0.209, allocations: 23.91 kB / 409.9 MB, free: 25.83 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.317e-05/0.2091, allocations: 19.86 kB / 410 MB, free: 25.81 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.473e-05/0.2091, allocations: 0 / 410 MB, free: 25.81 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.999e-05/0.2092, allocations: 4.531 kB / 410 MB, free: 25.81 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.281e-05/0.2092, allocations: 13.33 kB / 410 MB, free: 25.8 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.277e-05/0.2092, allocations: 49.52 kB / 410 MB, free: 25.74 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.265e-05/0.2093, allocations: 39.92 kB / 410.1 MB, free: 25.7 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.93e-06/0.2093, allocations: 0 / 410.1 MB, free: 25.7 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2094, allocations: 0.75 kB / 410.1 MB, free: 25.7 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.223e-06/0.2094, allocations: 0 / 410.1 MB, free: 25.7 MB / 298.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.0004521/0.2098, allocations: 365.5 kB / 410.4 MB, free: 25.3 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.97e-05/0.2099, allocations: 8.625 kB / 410.4 MB, free: 25.29 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001472/0.21, allocations: 21.45 kB / 410.5 MB, free: 25.27 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001777/0.2102, allocations: 207 kB / 410.7 MB, free: 25.04 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.254e-05/0.2102, allocations: 7.875 kB / 410.7 MB, free: 25.03 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.339e-05/0.2103, allocations: 4.375 kB / 410.7 MB, free: 25.03 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002626/0.2105, allocations: 109.1 kB / 410.8 MB, free: 24.9 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.257e-06/0.2105, allocations: 0 / 410.8 MB, free: 24.9 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.095e-05/0.2106, allocations: 3.688 kB / 410.8 MB, free: 24.9 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.031e-06/0.2106, allocations: 4 kB / 410.8 MB, free: 24.9 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.907e-05/0.2107, allocations: 23.92 kB / 410.8 MB, free: 24.88 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002681/0.2109, allocations: 261.8 kB / 411.1 MB, free: 24.57 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.31e-05/0.211, allocations: 42.84 kB / 411.1 MB, free: 24.51 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.667e-05/0.2111, allocations: 33.7 kB / 411.1 MB, free: 24.47 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.01e-05/0.2111, allocations: 0 / 411.1 MB, free: 24.47 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.809e-05/0.2111, allocations: 38.5 kB / 411.2 MB, free: 24.42 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 7.92e-07/0.2111, allocations: 0 / 411.2 MB, free: 24.42 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002411/0.2114, allocations: 81.61 kB / 411.3 MB, free: 24.34 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.919e-05/0.2114, allocations: 77.11 kB / 411.3 MB, free: 24.24 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.72e-05/0.2115, allocations: 133.8 kB / 411.5 MB, free: 24.1 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.397e-06/0.2115, allocations: 25.7 kB / 411.5 MB, free: 24.07 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.542e-05/0.2116, allocations: 96.12 kB / 411.6 MB, free: 23.97 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.241e-05/0.2116, allocations: 0 / 411.6 MB, free: 23.97 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.206e-06/0.2116, allocations: 0 / 411.6 MB, free: 23.97 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.238e-05/0.2117, allocations: 322.9 kB / 411.9 MB, free: 23.65 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.934e-05/0.2117, allocations: 11.98 kB / 411.9 MB, free: 23.64 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.291e-05/0.2118, allocations: 17.72 kB / 411.9 MB, free: 23.61 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.177e-05/0.2118, allocations: 41.7 kB / 412 MB, free: 23.57 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.2118, allocations: 0 / 412 MB, free: 23.57 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001018/0.212, allocations: 65.52 kB / 412 MB, free: 23.5 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.308e-05/0.212, allocations: 4 kB / 412 MB, free: 23.49 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-06/0.212, allocations: 4 kB / 412 MB, free: 23.49 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.274e-05/0.212, allocations: 0 / 412 MB, free: 23.49 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.015e-05/0.2121, allocations: 8.062 kB / 412 MB, free: 23.48 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.861e-06/0.2121, allocations: 0 / 412 MB, free: 23.48 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.707e-05/0.2121, allocations: 7.984 kB / 412.1 MB, free: 23.47 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.643e-06/0.2122, allocations: 3.938 kB / 412.1 MB, free: 23.47 MB / 298.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.256e-05/0.2122, allocations: 121.8 kB / 412.2 MB, free: 23.34 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.575e-05/0.2123, allocations: 37.61 kB / 412.2 MB, free: 23.3 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.851e-05/0.2123, allocations: 15.86 kB / 412.2 MB, free: 23.27 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.442e-06/0.2123, allocations: 0 / 412.2 MB, free: 23.27 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.2123, allocations: 4.031 kB / 412.2 MB, free: 23.27 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.2123, allocations: 4 kB / 412.2 MB, free: 23.27 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001153/0.2124, allocations: 173.5 kB / 412.4 MB, free: 23.05 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.2125, allocations: 3.938 kB / 412.4 MB, free: 23.04 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.178e-05/0.2125, allocations: 8 kB / 412.4 MB, free: 23.04 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.2125, allocations: 3.984 kB / 412.4 MB, free: 23.03 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.212e-06/0.2125, allocations: 0 / 412.4 MB, free: 23.03 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.2125, allocations: 0 / 412.4 MB, free: 23.03 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.2125, allocations: 0 / 412.4 MB, free: 23.03 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001256/0.2127, allocations: 168.2 kB / 412.6 MB, free: 22.85 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.746e-05/0.2127, allocations: 92.98 kB / 412.7 MB, free: 22.74 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.375e-05/0.2127, allocations: 0 / 412.7 MB, free: 22.74 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.317e-05/0.2128, allocations: 7.984 kB / 412.7 MB, free: 22.73 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.711e-05/0.2128, allocations: 0 / 412.7 MB, free: 22.73 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.797e-06/0.2128, allocations: 8.031 kB / 412.7 MB, free: 22.72 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.041e-05/0.2129, allocations: 118.1 kB / 412.8 MB, free: 22.61 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2129, allocations: 3.938 kB / 412.8 MB, free: 22.61 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002075/0.2131, allocations: 4 kB / 412.8 MB, free: 22.6 MB / 298.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 () * 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 (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 7.079e-05/0.2132, allocations: 95.25 kB / 412.9 MB, free: 22.5 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001189/0.2133, allocations: 28.05 kB / 412.9 MB, free: 22.47 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.2133, allocations: 0 / 412.9 MB, free: 22.47 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.59e-05/0.2134, allocations: 11.98 kB / 412.9 MB, free: 22.46 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003552/0.2137, allocations: 23.66 kB / 413 MB, free: 22.44 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002864/0.214, allocations: 215.1 kB / 413.2 MB, free: 22.19 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001275/0.2142, allocations: 0.6887 MB / 413.9 MB, free: 21.48 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.715e-05/0.2142, allocations: 11.42 kB / 413.9 MB, free: 21.46 MB / 298.7 MB Notification: Performance of SimCode: time 2.3e-07/0.2142, allocations: 0 / 413.9 MB, free: 21.46 MB / 298.7 MB Notification: Performance of Templates: time 0.001844/0.216, allocations: 0.7442 MB / 414.6 MB, free: 20.73 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches