Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.IntegerSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001071/0.001071, allocations: 197.4 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.443/1.443, allocations: 226.6 MB / 244.7 MB, free: 8.207 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008702/0.0008704, allocations: 113 kB / 296.8 MB, free: 6.902 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003289/0.0003291, allocations: 7.984 kB / 356.8 MB, free: 10.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2987/0.2991, allocations: 51.29 MB / 408 MB, free: 27.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.001854/0.301, allocations: 1.571 MB / 409.6 MB, free: 26.15 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001517/0.3025, allocations: 1.19 MB / 410.8 MB, free: 24.96 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001104/0.3027, allocations: 4.781 kB / 410.8 MB, free: 24.95 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003189/0.303, allocations: 60.28 kB / 410.9 MB, free: 24.89 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002666/0.3033, allocations: 109.4 kB / 411 MB, free: 24.79 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005539/0.3038, allocations: 220.1 kB / 411.2 MB, free: 24.58 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001656/0.304, allocations: 151.5 kB / 411.3 MB, free: 24.43 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001163/0.3041, allocations: 35.31 kB / 411.4 MB, free: 24.4 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.963e-05/0.3042, allocations: 59.66 kB / 411.4 MB, free: 24.34 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.515e-05/0.3043, allocations: 69.47 kB / 411.5 MB, free: 24.28 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.781e-05/0.3043, allocations: 4 kB / 411.5 MB, free: 24.27 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000116/0.3045, allocations: 59.89 kB / 411.6 MB, free: 24.21 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.148e-05/0.3045, allocations: 39.83 kB / 411.6 MB, free: 24.18 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.581e-05/0.3046, allocations: 94.02 kB / 411.7 MB, free: 24.08 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001765/0.3048, allocations: 172.6 kB / 411.9 MB, free: 23.91 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.3048, allocations: 3.844 kB / 411.9 MB, free: 23.91 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3048, allocations: 0 / 411.9 MB, free: 23.91 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.338e-06/0.3048, allocations: 0 / 411.9 MB, free: 23.91 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0005486/0.3054, allocations: 0.5078 MB / 412.4 MB, free: 23.35 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.489e-05/0.3054, allocations: 12.03 kB / 412.4 MB, free: 23.34 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.912e-05/0.3055, allocations: 20.66 kB / 412.4 MB, free: 23.32 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002606/0.3057, allocations: 283.6 kB / 412.7 MB, free: 23 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.871e-05/0.3058, allocations: 4.375 kB / 412.7 MB, free: 23 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.869e-05/0.3058, allocations: 13 kB / 412.7 MB, free: 22.98 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002942/0.3061, allocations: 160.2 kB / 412.9 MB, free: 22.8 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.436e-06/0.3061, allocations: 0 / 412.9 MB, free: 22.8 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.427e-05/0.3061, allocations: 0 / 412.9 MB, free: 22.8 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.803e-06/0.3061, allocations: 4 kB / 412.9 MB, free: 22.8 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001031/0.3063, allocations: 39.91 kB / 412.9 MB, free: 22.76 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004057/0.3067, allocations: 386.3 kB / 413.3 MB, free: 22.32 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000218/0.3069, allocations: 111.9 kB / 413.4 MB, free: 22.19 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.507e-05/0.307, allocations: 50.56 kB / 413.4 MB, free: 22.13 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.445e-05/0.307, allocations: 3.938 kB / 413.4 MB, free: 22.12 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001638/0.3072, allocations: 83.31 kB / 413.5 MB, free: 22.03 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 1.483e-06/0.3072, allocations: 4 kB / 413.5 MB, free: 22.03 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.000322/0.3075, allocations: 153.3 kB / 413.7 MB, free: 21.87 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.623e-05/0.3076, allocations: 166.2 kB / 413.8 MB, free: 21.67 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000253/0.3078, allocations: 330.7 kB / 414.2 MB, free: 21.34 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.263e-05/0.3079, allocations: 29.7 kB / 414.2 MB, free: 21.3 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.03e-05/0.3079, allocations: 128 kB / 414.3 MB, free: 21.18 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.971e-05/0.308, allocations: 19.83 kB / 414.3 MB, free: 21.16 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.631e-06/0.308, allocations: 256 / 414.3 MB, free: 21.16 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.435e-05/0.308, allocations: 342.8 kB / 414.7 MB, free: 20.81 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.894e-05/0.3081, allocations: 15.98 kB / 414.7 MB, free: 20.8 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.743e-05/0.3082, allocations: 88.81 kB / 414.8 MB, free: 20.69 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001214/0.3083, allocations: 84.22 kB / 414.9 MB, free: 20.59 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.3083, allocations: 0 / 414.9 MB, free: 20.59 MB / 298.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001812/0.3085, allocations: 129.2 kB / 415 MB, free: 20.46 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.278e-05/0.3085, allocations: 8 kB / 415 MB, free: 20.45 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.3085, allocations: 4.125 kB / 415 MB, free: 20.45 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.347e-05/0.3086, allocations: 7.984 kB / 415 MB, free: 20.44 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.084e-05/0.3086, allocations: 12 kB / 415 MB, free: 20.43 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.293e-06/0.3087, allocations: 7.938 kB / 415 MB, free: 20.42 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.868e-05/0.3087, allocations: 11.92 kB / 415 MB, free: 20.41 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.077e-06/0.3088, allocations: 8 kB / 415 MB, free: 20.4 MB / 298.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: 9 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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 9.488e-05/0.3089, allocations: 145.8 kB / 415.2 MB, free: 20.25 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.176e-05/0.3089, allocations: 73.38 kB / 415.3 MB, free: 20.17 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.515e-05/0.309, allocations: 29.77 kB / 415.3 MB, free: 20.14 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.035e-06/0.309, allocations: 7.938 kB / 415.3 MB, free: 20.13 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.309, allocations: 0 / 415.3 MB, free: 20.13 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.309, allocations: 3.938 kB / 415.3 MB, free: 20.13 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001345/0.3091, allocations: 245.4 kB / 415.5 MB, free: 19.84 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.3091, allocations: 4.297 kB / 415.5 MB, free: 19.84 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.581e-05/0.3092, allocations: 12 kB / 415.5 MB, free: 19.82 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.3092, allocations: 0 / 415.5 MB, free: 19.82 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.207e-05/0.3092, allocations: 8 kB / 415.6 MB, free: 19.82 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.3092, allocations: 0 / 415.6 MB, free: 19.82 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.3092, allocations: 4 kB / 415.6 MB, free: 19.81 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002058/0.3095, allocations: 166.4 kB / 415.7 MB, free: 19.62 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.431e-05/0.3095, allocations: 112.9 kB / 415.8 MB, free: 19.5 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.92e-05/0.3096, allocations: 4 kB / 415.8 MB, free: 19.49 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.296e-05/0.3096, allocations: 7.984 kB / 415.8 MB, free: 19.48 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.35e-05/0.3097, allocations: 15.98 kB / 415.9 MB, free: 19.47 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.517e-05/0.3097, allocations: 7.938 kB / 415.9 MB, free: 19.46 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001735/0.3099, allocations: 249.9 kB / 416.1 MB, free: 19.22 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3099, allocations: 0 / 416.1 MB, free: 19.22 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002356/0.3101, allocations: 35.91 kB / 416.1 MB, free: 19.18 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: 7 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 0.0008685/0.311, allocations: 427.2 kB / 416.6 MB, free: 18.9 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002045/0.3112, allocations: 75.91 kB / 416.6 MB, free: 18.83 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.3112, allocations: 0 / 416.6 MB, free: 18.83 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.116e-05/0.3113, allocations: 31.92 kB / 416.7 MB, free: 18.8 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003864/0.3117, allocations: 60.81 kB / 416.7 MB, free: 18.73 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000533/0.3123, allocations: 430.7 kB / 417.1 MB, free: 18.27 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001702/0.3124, allocations: 0.74 MB / 417.9 MB, free: 17.5 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.605e-05/0.3125, allocations: 23.44 kB / 417.9 MB, free: 17.48 MB / 298.7 MB Notification: Performance of SimCode: time 2.5e-07/0.3125, allocations: 0 / 417.9 MB, free: 17.48 MB / 298.7 MB Notification: Performance of Templates: time 0.004039/0.3165, allocations: 2.937 MB / 420.8 MB, free: 14.56 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/ShiftSample/ShiftSample.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches