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.001643/0.001644, allocations: 106.3 kB / 17.16 MB, free: 6.324 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.001899/0.0019, allocations: 198.9 kB / 18.08 MB, free: 5.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.375/2.375, allocations: 222.9 MB / 241.8 MB, free: 15.26 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001979/0.001979, allocations: 50.41 kB / 300.6 MB, free: 6.277 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1904/0.1925, allocations: 49.44 MB / 350.1 MB, free: 4.828 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.007285/0.1998, allocations: 1.929 MB / 352 MB, free: 2.879 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003892/0.2038, allocations: 1.126 MB / 353.1 MB, free: 1.746 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002895/0.2041, allocations: 4 kB / 353.1 MB, free: 1.742 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006465/0.2049, allocations: 59.8 kB / 353.2 MB, free: 1.684 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004742/0.2054, allocations: 79.73 kB / 353.3 MB, free: 1.605 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001339/0.2067, allocations: 222.6 kB / 353.5 MB, free: 1.391 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00047/0.2072, allocations: 159.5 kB / 353.6 MB, free: 1.234 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000197/0.2075, allocations: 33.53 kB / 353.7 MB, free: 1.203 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001954/0.2077, allocations: 71.62 kB / 353.7 MB, free: 1.133 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002017/0.2079, allocations: 75.69 kB / 353.8 MB, free: 1.059 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.648e-05/0.2079, allocations: 4 kB / 353.8 MB, free: 1.055 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00029/0.2082, allocations: 51.97 kB / 353.9 MB, free: 1.004 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000142/0.2084, allocations: 47.83 kB / 353.9 MB, free: 0.957 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001424/0.2085, allocations: 75.42 kB / 354 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00041/0.209, allocations: 176 kB / 354.1 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.783e-06/0.209, allocations: 0 / 354.1 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.209, allocations: 0 / 354.1 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.724e-06/0.209, allocations: 0 / 354.1 MB, free: 0.7109 MB / 286.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.001285/0.2103, allocations: 0.5273 MB / 354.7 MB, free: 132 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.889e-05/0.2104, allocations: 12.03 kB / 354.7 MB, free: 120 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001271/0.2105, allocations: 28.64 kB / 354.7 MB, free: 92 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007458/0.2113, allocations: 283.5 kB / 355 MB, free: 15.78 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.789e-05/0.2113, allocations: 4.375 kB / 355 MB, free: 15.77 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.444e-05/0.2114, allocations: 16.06 kB / 355 MB, free: 15.76 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007963/0.2122, allocations: 158.8 kB / 355.2 MB, free: 15.58 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.607e-05/0.2122, allocations: 4 kB / 355.2 MB, free: 15.57 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.59e-05/0.2123, allocations: 4 kB / 355.2 MB, free: 15.57 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.558e-06/0.2123, allocations: 0 / 355.2 MB, free: 15.57 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001996/0.2125, allocations: 35.91 kB / 355.2 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001168/0.2137, allocations: 390.3 kB / 355.6 MB, free: 15.1 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004214/0.2141, allocations: 115.8 kB / 355.7 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000209/0.2143, allocations: 50.56 kB / 355.8 MB, free: 14.9 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.477e-05/0.2144, allocations: 7.984 kB / 355.8 MB, free: 14.89 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004009/0.2148, allocations: 67.39 kB / 355.8 MB, free: 14.81 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 2.675e-06/0.2148, allocations: 0 / 355.8 MB, free: 14.81 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0007348/0.2156, allocations: 165.4 kB / 356 MB, free: 14.64 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001465/0.2157, allocations: 154.2 kB / 356.1 MB, free: 14.46 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005781/0.2163, allocations: 326.7 kB / 356.5 MB, free: 14.12 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.918e-05/0.2164, allocations: 25.7 kB / 356.5 MB, free: 14.09 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001542/0.2165, allocations: 132 kB / 356.6 MB, free: 13.96 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.796e-05/0.2166, allocations: 15.81 kB / 356.6 MB, free: 13.95 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.131e-05/0.2167, allocations: 29.7 kB / 356.7 MB, free: 13.91 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002097/0.2169, allocations: 338.8 kB / 357 MB, free: 13.57 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001113/0.217, allocations: 23.98 kB / 357 MB, free: 13.55 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002312/0.2173, allocations: 82.84 kB / 357.1 MB, free: 13.44 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002576/0.2176, allocations: 92.16 kB / 357.2 MB, free: 13.34 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.297e-06/0.2176, allocations: 3.938 kB / 357.2 MB, free: 13.33 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003932/0.218, allocations: 121.4 kB / 357.3 MB, free: 13.21 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.891e-05/0.218, allocations: 8 kB / 357.3 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.193e-05/0.218, allocations: 3.984 kB / 357.3 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.837e-05/0.2181, allocations: 4.125 kB / 357.3 MB, free: 13.19 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001675/0.2182, allocations: 23.94 kB / 357.3 MB, free: 13.17 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.361e-05/0.2183, allocations: 7.984 kB / 357.4 MB, free: 13.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001347/0.2184, allocations: 8.25 kB / 357.4 MB, free: 13.15 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.355e-05/0.2184, allocations: 0 / 357.4 MB, free: 13.15 MB / 302.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.0004084/0.2189, allocations: 157.8 kB / 357.5 MB, free: 12.99 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001436/0.219, allocations: 69.34 kB / 357.6 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.222e-05/0.2191, allocations: 29.77 kB / 357.6 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.2192, allocations: 0 / 357.6 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.034e-05/0.2192, allocations: 4 kB / 357.6 MB, free: 12.88 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.997e-06/0.2192, allocations: 3.938 kB / 357.6 MB, free: 12.88 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000344/0.2195, allocations: 233.6 kB / 357.8 MB, free: 12.6 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.2196, allocations: 0 / 357.8 MB, free: 12.6 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001169/0.2197, allocations: 15.98 kB / 357.9 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.06e-05/0.2197, allocations: 4 kB / 357.9 MB, free: 12.58 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.611e-05/0.2197, allocations: 7.875 kB / 357.9 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.555e-06/0.2198, allocations: 0 / 357.9 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.93e-06/0.2198, allocations: 4 kB / 357.9 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004442/0.2202, allocations: 166.4 kB / 358 MB, free: 12.38 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003714/0.2206, allocations: 116.8 kB / 358.2 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.314e-05/0.2207, allocations: 4 kB / 358.2 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001122/0.2208, allocations: 4 kB / 358.2 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.135e-05/0.2209, allocations: 11.98 kB / 358.2 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.977e-05/0.2209, allocations: 11.94 kB / 358.2 MB, free: 12.22 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004438/0.2214, allocations: 241.9 kB / 358.4 MB, free: 11.98 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.2214, allocations: 0 / 358.4 MB, free: 11.98 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005214/0.2219, allocations: 32 kB / 358.5 MB, free: 11.95 MB / 302.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.001814/0.2238, allocations: 430.9 kB / 358.9 MB, free: 11.68 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000401/0.2242, allocations: 76.03 kB / 358.9 MB, free: 11.61 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.599e-06/0.2242, allocations: 4.062 kB / 359 MB, free: 11.61 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001828/0.2244, allocations: 23.98 kB / 359 MB, free: 11.58 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006824/0.2251, allocations: 68.41 kB / 359 MB, free: 11.52 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001256/0.2264, allocations: 436.7 kB / 359.5 MB, free: 11.04 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006285/0.227, allocations: 0.7478 MB / 360.2 MB, free: 10.27 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.147e-05/0.2271, allocations: 19.44 kB / 360.2 MB, free: 10.25 MB / 302.1 MB Notification: Performance of SimCode: time 3.61e-07/0.2272, allocations: 0 / 360.2 MB, free: 10.25 MB / 302.1 MB Notification: Performance of Templates: time 0.009651/0.2368, allocations: 2.883 MB / 363.1 MB, free: 7.379 MB / 302.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