Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.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.RealSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001365/0.001365, allocations: 197.7 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.406/1.406, allocations: 226.6 MB / 244.3 MB, free: 6.5 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000743/0.000743, allocations: 102.3 kB / 296.4 MB, free: 6.793 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002656/0.0002656, allocations: 8 kB / 356.2 MB, free: 11 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2339/0.2342, allocations: 51.3 MB / 407.5 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample): time 0.001483/0.2358, allocations: 1.284 MB / 408.8 MB, free: 26.53 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007258/0.2365, allocations: 0.4971 MB / 409.3 MB, free: 26.03 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.589e-05/0.2366, allocations: 13.75 kB / 409.3 MB, free: 26.02 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.111e-05/0.2366, allocations: 3.984 kB / 409.3 MB, free: 26.02 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001384/0.2368, allocations: 3.938 kB / 409.3 MB, free: 26.01 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002672/0.2371, allocations: 51.83 kB / 409.4 MB, free: 25.96 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.301e-05/0.2372, allocations: 41.92 kB / 409.4 MB, free: 25.92 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.653e-05/0.2373, allocations: 16.16 kB / 409.4 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001056/0.2374, allocations: 15.94 kB / 409.4 MB, free: 25.89 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.477e-05/0.2374, allocations: 20.64 kB / 409.4 MB, free: 25.87 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.336e-05/0.2375, allocations: 0 / 409.4 MB, free: 25.87 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.983e-05/0.2375, allocations: 8 kB / 409.5 MB, free: 25.86 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.058e-05/0.2375, allocations: 16.53 kB / 409.5 MB, free: 25.85 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.963e-05/0.2376, allocations: 34.92 kB / 409.5 MB, free: 25.81 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.633e-05/0.2377, allocations: 39.88 kB / 409.5 MB, free: 25.77 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.2377, allocations: 0 / 409.5 MB, free: 25.77 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2377, allocations: 0 / 409.5 MB, free: 25.77 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.797e-06/0.2377, allocations: 0.9375 kB / 409.5 MB, free: 25.77 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.0003709/0.2381, allocations: 368.7 kB / 409.9 MB, free: 25.36 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.453e-05/0.2381, allocations: 9.031 kB / 409.9 MB, free: 25.36 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001554/0.2383, allocations: 29.27 kB / 409.9 MB, free: 25.33 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001582/0.2384, allocations: 193.1 kB / 410.1 MB, free: 25.1 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.116e-05/0.2385, allocations: 7.953 kB / 410.1 MB, free: 25.09 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.528e-06/0.2385, allocations: 4 kB / 410.1 MB, free: 25.09 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002421/0.2387, allocations: 114.2 kB / 410.3 MB, free: 24.96 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.075e-06/0.2387, allocations: 0 / 410.3 MB, free: 24.96 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.827e-06/0.2387, allocations: 4 kB / 410.3 MB, free: 24.96 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.27e-06/0.2388, allocations: 0 / 410.3 MB, free: 24.96 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.136e-05/0.2388, allocations: 30.23 kB / 410.3 MB, free: 24.93 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000254/0.2391, allocations: 278.6 kB / 410.6 MB, free: 24.6 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.219e-05/0.2392, allocations: 75.78 kB / 410.6 MB, free: 24.5 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.286e-05/0.2393, allocations: 42.56 kB / 410.7 MB, free: 24.45 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.702e-05/0.2393, allocations: 0 / 410.7 MB, free: 24.45 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.792e-05/0.2393, allocations: 30.56 kB / 410.7 MB, free: 24.41 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 9.52e-07/0.2393, allocations: 0 / 410.7 MB, free: 24.41 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002516/0.2396, allocations: 93.86 kB / 410.8 MB, free: 24.31 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.307e-05/0.2397, allocations: 114.7 kB / 410.9 MB, free: 24.18 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.491e-05/0.2397, allocations: 133.8 kB / 411 MB, free: 24.04 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.254e-06/0.2398, allocations: 25.7 kB / 411.1 MB, free: 24 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.403e-05/0.2398, allocations: 96.12 kB / 411.2 MB, free: 23.91 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.233e-05/0.2398, allocations: 3.906 kB / 411.2 MB, free: 23.9 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.587e-06/0.2398, allocations: 0 / 411.2 MB, free: 23.9 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.838e-05/0.2399, allocations: 326.8 kB / 411.5 MB, free: 23.57 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.524e-05/0.2399, allocations: 11.98 kB / 411.5 MB, free: 23.56 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.001e-05/0.24, allocations: 35.42 kB / 411.5 MB, free: 23.52 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.482e-05/0.24, allocations: 16 kB / 411.5 MB, free: 23.5 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.24, allocations: 4 kB / 411.5 MB, free: 23.5 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001143/0.2402, allocations: 69.55 kB / 411.6 MB, free: 23.42 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.45e-05/0.2402, allocations: 11.94 kB / 411.6 MB, free: 23.41 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.2402, allocations: 0 / 411.6 MB, free: 23.41 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.198e-05/0.2402, allocations: 0 / 411.6 MB, free: 23.41 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.195e-05/0.2403, allocations: 12.12 kB / 411.6 MB, free: 23.4 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.824e-06/0.2403, allocations: 7.984 kB / 411.6 MB, free: 23.39 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.196e-05/0.2403, allocations: 11.84 kB / 411.7 MB, free: 23.38 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.414e-06/0.2404, allocations: 0 / 411.7 MB, free: 23.38 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (4): * Single equations (assignments): 4 * 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.644e-05/0.2404, allocations: 117.8 kB / 411.8 MB, free: 23.25 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.231e-05/0.2405, allocations: 61.47 kB / 411.8 MB, free: 23.19 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.141e-05/0.2405, allocations: 11.88 kB / 411.8 MB, free: 23.17 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.2405, allocations: 4.062 kB / 411.8 MB, free: 23.16 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.89e-06/0.2405, allocations: 0 / 411.8 MB, free: 23.16 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.439e-06/0.2406, allocations: 3.984 kB / 411.9 MB, free: 23.16 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001248/0.2407, allocations: 173.6 kB / 412 MB, free: 22.94 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.2407, allocations: 0 / 412 MB, free: 22.94 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.614e-05/0.2408, allocations: 8.094 kB / 412 MB, free: 22.93 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.617e-06/0.2408, allocations: 7.984 kB / 412 MB, free: 22.93 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.356e-06/0.2408, allocations: 7.984 kB / 412 MB, free: 22.92 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.2408, allocations: 0 / 412 MB, free: 22.92 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.2408, allocations: 7.938 kB / 412.1 MB, free: 22.91 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001441/0.2409, allocations: 181.1 kB / 412.2 MB, free: 22.71 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.749e-05/0.241, allocations: 93 kB / 412.3 MB, free: 22.6 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.381e-05/0.241, allocations: 0 / 412.3 MB, free: 22.6 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.109e-05/0.2411, allocations: 4 kB / 412.3 MB, free: 22.6 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.166e-05/0.2411, allocations: 4 kB / 412.3 MB, free: 22.59 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.42e-06/0.2411, allocations: 7.984 kB / 412.3 MB, free: 22.59 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.639e-05/0.2412, allocations: 106.4 kB / 412.4 MB, free: 22.48 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2412, allocations: 0 / 412.4 MB, free: 22.48 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002054/0.2414, allocations: 12 kB / 412.5 MB, free: 22.47 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (4): * Single equations (assignments): 4 * 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.249e-05/0.2415, allocations: 99.19 kB / 412.5 MB, free: 22.37 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001413/0.2416, allocations: 35.97 kB / 412.6 MB, free: 22.33 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.2417, allocations: 0 / 412.6 MB, free: 22.33 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.681e-05/0.2417, allocations: 11.94 kB / 412.6 MB, free: 22.32 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003378/0.242, allocations: 31.97 kB / 412.6 MB, free: 22.29 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003282/0.2424, allocations: 232.7 kB / 412.9 MB, free: 22.02 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001282/0.2425, allocations: 0.6965 MB / 413.6 MB, free: 21.3 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.507e-05/0.2426, allocations: 7.438 kB / 413.6 MB, free: 21.29 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.2426, allocations: 0 / 413.6 MB, free: 21.29 MB / 298.7 MB Notification: Performance of Templates: time 0.001782/0.2443, allocations: 0.8329 MB / 414.4 MB, free: 20.47 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/ShiftSample/ShiftSample.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches