Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001709/0.001709, allocations: 112.6 kB / 17.74 MB, free: 5.227 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002062/0.002062, allocations: 184.5 kB / 18.67 MB, free: 4.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.465/1.465, allocations: 222.9 MB / 242.4 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001112/0.001112, allocations: 43.92 kB / 352 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2648/0.2659, allocations: 49.43 MB / 401.4 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.003611/0.2696, allocations: 1.878 MB / 403.3 MB, free: 7.016 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001987/0.2716, allocations: 1.138 MB / 404.4 MB, free: 5.871 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001492/0.2718, allocations: 8 kB / 404.4 MB, free: 5.863 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003245/0.2721, allocations: 67.64 kB / 404.5 MB, free: 5.797 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003089/0.2724, allocations: 91.59 kB / 404.6 MB, free: 5.707 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007909/0.2732, allocations: 249.5 kB / 404.8 MB, free: 5.465 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002913/0.2736, allocations: 175.5 kB / 405 MB, free: 5.293 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001258/0.2737, allocations: 29.53 kB / 405 MB, free: 5.266 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001454/0.2738, allocations: 75.69 kB / 405.1 MB, free: 5.191 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001282/0.274, allocations: 79.62 kB / 405.2 MB, free: 5.113 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.034e-05/0.274, allocations: 8 kB / 405.2 MB, free: 5.105 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001762/0.2742, allocations: 67.95 kB / 405.2 MB, free: 5.039 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.226e-05/0.2743, allocations: 47.83 kB / 405.3 MB, free: 4.992 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.246e-05/0.2744, allocations: 79.48 kB / 405.4 MB, free: 4.914 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003538/0.2748, allocations: 239 kB / 405.6 MB, free: 4.684 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.2748, allocations: 0 / 405.6 MB, free: 4.684 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.2748, allocations: 0 / 405.6 MB, free: 4.684 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.494e-06/0.2748, allocations: 3.938 kB / 405.6 MB, free: 4.68 MB / 318.1 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.0007557/0.2756, allocations: 0.5324 MB / 406.1 MB, free: 4.094 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.703e-05/0.2756, allocations: 11.89 kB / 406.1 MB, free: 4.082 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.587e-05/0.2757, allocations: 28.66 kB / 406.2 MB, free: 4.055 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004154/0.2761, allocations: 295.5 kB / 406.5 MB, free: 3.727 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.705e-05/0.2761, allocations: 4.375 kB / 406.5 MB, free: 3.723 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.362e-05/0.2762, allocations: 12.12 kB / 406.5 MB, free: 3.711 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003511/0.2765, allocations: 158.2 kB / 406.6 MB, free: 3.531 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.125e-06/0.2765, allocations: 0 / 406.6 MB, free: 3.531 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.37e-05/0.2766, allocations: 0 / 406.6 MB, free: 3.531 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.652e-06/0.2766, allocations: 4 kB / 406.6 MB, free: 3.527 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001141/0.2767, allocations: 31.92 kB / 406.7 MB, free: 3.496 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005427/0.2772, allocations: 386.4 kB / 407 MB, free: 3.062 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002492/0.2775, allocations: 115.9 kB / 407.2 MB, free: 2.922 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.615e-05/0.2776, allocations: 46.56 kB / 407.2 MB, free: 2.867 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.497e-05/0.2776, allocations: 4 kB / 407.2 MB, free: 2.863 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001633/0.2778, allocations: 75.45 kB / 407.3 MB, free: 2.777 MB / 318.1 MB Notification: Performance of pre-optimization done (n=9): time 4.729e-06/0.2778, allocations: 0 / 407.3 MB, free: 2.777 MB / 318.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003969/0.2782, allocations: 153.2 kB / 407.4 MB, free: 2.621 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.412e-05/0.2783, allocations: 166.5 kB / 407.6 MB, free: 2.422 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003472/0.2787, allocations: 326.7 kB / 407.9 MB, free: 2.094 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.904e-05/0.2787, allocations: 25.7 kB / 407.9 MB, free: 2.062 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.49e-05/0.2788, allocations: 128 kB / 408.1 MB, free: 1.934 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.537e-05/0.2789, allocations: 27.67 kB / 408.1 MB, free: 1.906 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.295e-05/0.2789, allocations: 29.72 kB / 408.1 MB, free: 1.871 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001162/0.279, allocations: 334.8 kB / 408.4 MB, free: 1.535 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.221e-05/0.2791, allocations: 27.98 kB / 408.5 MB, free: 1.508 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001245/0.2792, allocations: 90.73 kB / 408.6 MB, free: 1.395 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000155/0.2794, allocations: 88.2 kB / 408.6 MB, free: 1.293 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.2794, allocations: 0 / 408.6 MB, free: 1.293 MB / 318.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002428/0.2797, allocations: 121.7 kB / 408.8 MB, free: 1.168 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.534e-05/0.2797, allocations: 4 kB / 408.8 MB, free: 1.164 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.2797, allocations: 3.938 kB / 408.8 MB, free: 1.16 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.29e-05/0.2797, allocations: 4 kB / 408.8 MB, free: 1.156 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001108/0.2798, allocations: 23.98 kB / 408.8 MB, free: 1.133 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.222e-06/0.2799, allocations: 4.125 kB / 408.8 MB, free: 1.129 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.087e-05/0.2799, allocations: 11.84 kB / 408.8 MB, free: 1.117 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.071e-05/0.28, allocations: 4 kB / 408.8 MB, free: 1.113 MB / 318.1 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 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001403/0.2801, allocations: 161.8 kB / 409 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.509e-05/0.2802, allocations: 61.42 kB / 409 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.463e-05/0.2803, allocations: 25.7 kB / 409.1 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-06/0.2803, allocations: 4 kB / 409.1 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.2803, allocations: 3.938 kB / 409.1 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/0.2803, allocations: 11.98 kB / 409.1 MB, free: 0.832 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002035/0.2805, allocations: 237.5 kB / 409.3 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.2805, allocations: 4.047 kB / 409.3 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.856e-05/0.2806, allocations: 15.92 kB / 409.3 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.706e-06/0.2806, allocations: 0 / 409.3 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.312e-05/0.2806, allocations: 7.984 kB / 409.3 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.2806, allocations: 0 / 409.3 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-06/0.2806, allocations: 0 / 409.3 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002729/0.2809, allocations: 174.4 kB / 409.5 MB, free: 336 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.913e-05/0.281, allocations: 112.8 kB / 409.6 MB, free: 204 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.374e-05/0.2811, allocations: 0 / 409.6 MB, free: 204 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.121e-05/0.2811, allocations: 7.984 kB / 409.6 MB, free: 196 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.884e-05/0.2812, allocations: 8 kB / 409.6 MB, free: 188 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.951e-05/0.2812, allocations: 11.92 kB / 409.7 MB, free: 176 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002414/0.2815, allocations: 241.9 kB / 409.9 MB, free: 15.93 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2815, allocations: 4 kB / 409.9 MB, free: 15.93 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002764/0.2818, allocations: 32 kB / 409.9 MB, free: 15.9 MB / 334.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009678/0.2827, allocations: 426.3 kB / 410.3 MB, free: 15.64 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002257/0.283, allocations: 75.84 kB / 410.4 MB, free: 15.56 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.283, allocations: 0 / 410.4 MB, free: 15.56 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.313e-05/0.2831, allocations: 28.23 kB / 410.4 MB, free: 15.54 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004158/0.2835, allocations: 68.72 kB / 410.5 MB, free: 15.47 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006071/0.2841, allocations: 398.6 kB / 410.9 MB, free: 15.04 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003206/0.2845, allocations: 0.7399 MB / 411.6 MB, free: 14.27 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.792e-05/0.2845, allocations: 27.42 kB / 411.7 MB, free: 14.24 MB / 334.1 MB Notification: Performance of SimCode: time 2.9e-07/0.2845, allocations: 3.938 kB / 411.7 MB, free: 14.24 MB / 334.1 MB Notification: Performance of Templates: time 0.005352/0.2899, allocations: 2.915 MB / 414.6 MB, free: 11.34 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches