Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.IntegerSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_trunk_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_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001568/0.001569, allocations: 109.7 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001921/0.001921, allocations: 210.8 kB / 19.4 MB, free: 3.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.059/2.059, allocations: 227.4 MB / 247.6 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002459/0.002459, allocations: 67.88 kB / 359.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6058/0.6083, allocations: 50.55 MB / 409.9 MB, free: 1.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.005769/0.6141, allocations: 1.883 MB / 411.8 MB, free: 15.7 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00378/0.618, allocations: 1.278 MB / 413.1 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002015/0.6182, allocations: 4 kB / 413.1 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005145/0.6188, allocations: 71.66 kB / 413.2 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006565/0.6194, allocations: 135.4 kB / 413.3 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001034/0.6205, allocations: 222.8 kB / 413.5 MB, free: 13.99 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004013/0.6209, allocations: 179.5 kB / 413.7 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001953/0.6211, allocations: 33.55 kB / 413.7 MB, free: 13.78 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001829/0.6213, allocations: 75.69 kB / 413.8 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000182/0.6215, allocations: 79.69 kB / 413.9 MB, free: 13.63 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.391e-05/0.6215, allocations: 8 kB / 413.9 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002278/0.6218, allocations: 75.88 kB / 414 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001422/0.6219, allocations: 47.84 kB / 414 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001327/0.6221, allocations: 79.42 kB / 414.1 MB, free: 13.42 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005309/0.6226, allocations: 247 kB / 414.3 MB, free: 13.18 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.534e-06/0.6226, allocations: 0 / 414.3 MB, free: 13.18 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.036e-06/0.6227, allocations: 4 kB / 414.3 MB, free: 13.18 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.227e-06/0.6227, allocations: 0 / 414.3 MB, free: 13.18 MB / 334.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.001281/0.624, allocations: 0.5324 MB / 414.9 MB, free: 12.59 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.38e-05/0.624, allocations: 15.97 kB / 414.9 MB, free: 12.58 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001072/0.6242, allocations: 20.66 kB / 414.9 MB, free: 12.56 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007262/0.6249, allocations: 295.5 kB / 415.2 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.475e-05/0.6249, allocations: 8.375 kB / 415.2 MB, free: 12.22 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.016e-05/0.625, allocations: 12.12 kB / 415.2 MB, free: 12.21 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006263/0.6256, allocations: 159.5 kB / 415.4 MB, free: 12.03 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.476e-05/0.6257, allocations: 0 / 415.4 MB, free: 12.03 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.103e-05/0.6257, allocations: 4 kB / 415.4 MB, free: 12.02 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.087e-05/0.6257, allocations: 3.984 kB / 415.4 MB, free: 12.02 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001746/0.6259, allocations: 35.92 kB / 415.4 MB, free: 11.98 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008631/0.6268, allocations: 382.4 kB / 415.8 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000373/0.6272, allocations: 119.9 kB / 415.9 MB, free: 11.41 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001308/0.6273, allocations: 50.5 kB / 415.9 MB, free: 11.35 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.228e-05/0.6273, allocations: 0 / 415.9 MB, free: 11.35 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002332/0.6276, allocations: 83.38 kB / 416 MB, free: 11.26 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 5.982e-06/0.6276, allocations: 0 / 416 MB, free: 11.26 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0005685/0.6282, allocations: 157.2 kB / 416.2 MB, free: 11.1 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001626/0.6284, allocations: 158.2 kB / 416.3 MB, free: 10.91 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005238/0.6289, allocations: 334.9 kB / 416.7 MB, free: 10.57 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.72e-05/0.6289, allocations: 29.7 kB / 416.7 MB, free: 10.53 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001628/0.6291, allocations: 136 kB / 416.8 MB, free: 10.39 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.692e-05/0.6292, allocations: 19.75 kB / 416.8 MB, free: 10.38 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.734e-05/0.6292, allocations: 29.7 kB / 416.9 MB, free: 10.34 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002129/0.6295, allocations: 334.8 kB / 417.2 MB, free: 10 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.38e-05/0.6296, allocations: 23.98 kB / 417.2 MB, free: 9.98 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001599/0.6297, allocations: 87.09 kB / 417.3 MB, free: 9.871 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002363/0.63, allocations: 88.16 kB / 417.4 MB, free: 9.77 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.63, allocations: 4 kB / 417.4 MB, free: 9.766 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003141/0.6303, allocations: 121.3 kB / 417.5 MB, free: 9.641 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.747e-05/0.6304, allocations: 11.98 kB / 417.5 MB, free: 9.629 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.548e-06/0.6304, allocations: 3.984 kB / 417.5 MB, free: 9.625 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.408e-05/0.6304, allocations: 0 / 417.5 MB, free: 9.625 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001756/0.6306, allocations: 19.94 kB / 417.5 MB, free: 9.605 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.274e-05/0.6306, allocations: 4 kB / 417.5 MB, free: 9.602 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001273/0.6308, allocations: 15.92 kB / 417.6 MB, free: 9.586 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.376e-05/0.6308, allocations: 4.125 kB / 417.6 MB, free: 9.582 MB / 334.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.0002213/0.631, allocations: 161.8 kB / 417.7 MB, free: 9.414 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001421/0.6312, allocations: 69.34 kB / 417.8 MB, free: 9.34 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.162e-05/0.6313, allocations: 21.7 kB / 417.8 MB, free: 9.316 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.61e-06/0.6313, allocations: 4 kB / 417.8 MB, free: 9.312 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.869e-06/0.6313, allocations: 0 / 417.8 MB, free: 9.312 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.077e-06/0.6313, allocations: 7.875 kB / 417.8 MB, free: 9.305 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003528/0.6317, allocations: 253.5 kB / 418.1 MB, free: 9.008 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.6317, allocations: 4.062 kB / 418.1 MB, free: 9.004 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.515e-05/0.6318, allocations: 12 kB / 418.1 MB, free: 8.992 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.6318, allocations: 0 / 418.1 MB, free: 8.992 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.813e-05/0.6318, allocations: 4 kB / 418.1 MB, free: 8.988 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.945e-06/0.6319, allocations: 7.922 kB / 418.1 MB, free: 8.98 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.6319, allocations: 0 / 418.1 MB, free: 8.98 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005843/0.6325, allocations: 170.5 kB / 418.3 MB, free: 8.789 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001606/0.6326, allocations: 116.8 kB / 418.4 MB, free: 8.656 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.049e-05/0.6327, allocations: 4 kB / 418.4 MB, free: 8.652 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.229e-05/0.6328, allocations: 7.984 kB / 418.4 MB, free: 8.645 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.64e-05/0.6329, allocations: 4 kB / 418.4 MB, free: 8.641 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.163e-05/0.6329, allocations: 11.92 kB / 418.4 MB, free: 8.629 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003862/0.6333, allocations: 249.9 kB / 418.7 MB, free: 8.387 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.6333, allocations: 0 / 418.7 MB, free: 8.387 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004206/0.6337, allocations: 32 kB / 418.7 MB, free: 8.355 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.001773/0.6355, allocations: 413.7 kB / 419.1 MB, free: 8.082 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003803/0.6359, allocations: 79.83 kB / 419.2 MB, free: 8.004 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.05e-06/0.6359, allocations: 0 / 419.2 MB, free: 8.004 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001284/0.6361, allocations: 24 kB / 419.2 MB, free: 7.98 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006727/0.6368, allocations: 77.27 kB / 419.3 MB, free: 7.91 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001123/0.6379, allocations: 415.2 kB / 419.7 MB, free: 7.465 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008249/0.6388, allocations: 0.7436 MB / 420.4 MB, free: 6.695 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.277e-05/0.6389, allocations: 19.44 kB / 420.4 MB, free: 6.676 MB / 334.1 MB Notification: Performance of SimCode: time 3.51e-07/0.6389, allocations: 0 / 420.4 MB, free: 6.676 MB / 334.1 MB Notification: Performance of Templates: time 0.008822/0.6477, allocations: 3.007 MB / 423.4 MB, free: 3.68 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches